public abstract class ParserSettings extends ParserSettings
Modifier and Type | Class and Description |
---|---|
static interface |
ParserSettings.ConflictingContentTypeHeaderProcessingMode |
static class |
ParserSettings.ConflictingContentTypeHeaderProcessingMode$ |
static interface |
ParserSettings.CookieParsingMode |
static class |
ParserSettings.CookieParsingMode$ |
static interface |
ParserSettings.ErrorLoggingVerbosity |
static class |
ParserSettings.ErrorLoggingVerbosity$ |
static interface |
ParserSettings.IllegalResponseHeaderNameProcessingMode |
static class |
ParserSettings.IllegalResponseHeaderNameProcessingMode$ |
static interface |
ParserSettings.IllegalResponseHeaderValueProcessingMode |
static class |
ParserSettings.IllegalResponseHeaderValueProcessingMode$ |
Constructor and Description |
---|
ParserSettings() |
create, create, create, withCookieParsingMode, withCustomMediaTypes, withCustomMediaTypes, withCustomMethods, withCustomMethods, withCustomStatusCodes, withCustomStatusCodes, withErrorLoggingVerbosity, withHeaderValueCacheLimits, withUriParsingMode
defaultHeaderValueCacheLimit
headerValueCacheLimit
public static ParserSettings apply(com.typesafe.config.Config config)
public static ParserSettings apply(java.lang.String configOverrides)
public static ParserSettings forServer(org.apache.pekko.actor.ClassicActorSystemProvider system)
public static ParserSettings forClient(org.apache.pekko.actor.ClassicActorSystemProvider system)
public abstract int maxUriLength()
public abstract int maxMethodLength()
public abstract int maxResponseReasonLength()
public abstract int maxHeaderNameLength()
maxHeaderNameLength
in class HttpHeaderParser.Settings
public abstract int maxHeaderValueLength()
maxHeaderValueLength
in class HttpHeaderParser.Settings
public abstract int maxHeaderCount()
maxHeaderCount
in class BodyPartParser.Settings
public abstract long maxContentLength()
public abstract long maxToStrictBytes()
public abstract int maxChunkExtLength()
public abstract int maxChunkSize()
public abstract int maxCommentParsingDepth()
maxCommentParsingDepth
in class HeaderParser.Settings
public abstract Uri.ParsingMode uriParsingMode()
uriParsingMode
in class HeaderParser.Settings
public abstract ParserSettings.CookieParsingMode cookieParsingMode()
cookieParsingMode
in class HeaderParser.Settings
public abstract boolean illegalHeaderWarnings()
illegalHeaderWarnings
in class BodyPartParser.Settings
public abstract scala.collection.immutable.Set<java.lang.String> ignoreIllegalHeaderFor()
ignoreIllegalHeaderFor
in class HttpHeaderParser.Settings
public abstract ParserSettings.ErrorLoggingVerbosity errorLoggingVerbosity()
errorLoggingVerbosity
in class HttpHeaderParser.Settings
public abstract ParserSettings.IllegalResponseHeaderNameProcessingMode illegalResponseHeaderNameProcessingMode()
illegalResponseHeaderNameProcessingMode
in class HttpHeaderParser.Settings
public abstract ParserSettings.IllegalResponseHeaderValueProcessingMode illegalResponseHeaderValueProcessingMode()
illegalResponseHeaderValueProcessingMode
in class HttpHeaderParser.Settings
public abstract ParserSettings.ConflictingContentTypeHeaderProcessingMode conflictingContentTypeHeaderProcessingMode()
public abstract scala.collection.immutable.Map<java.lang.String,java.lang.Object> headerValueCacheLimits()
headerValueCacheLimits
in class ParserSettings
public abstract boolean includeTlsSessionInfoHeader()
public abstract boolean includeSslSessionAttribute()
public abstract scala.Function1<java.lang.String,scala.Option<HttpMethod>> customMethods()
public abstract scala.Function1<java.lang.Object,scala.Option<StatusCode>> customStatusCodes()
public abstract scala.Function2<java.lang.String,java.lang.String,scala.Option<MediaType>> customMediaTypes()
customMediaTypes
in class HttpHeaderParser.Settings
public abstract boolean modeledHeaderParsing()
modeledHeaderParsing
in class HttpHeaderParser.Settings
public ParserSettings.CookieParsingMode getCookieParsingMode()
getCookieParsingMode
in class ParserSettings
public java.util.Map<java.lang.String,java.lang.Object> getHeaderValueCacheLimits()
getHeaderValueCacheLimits
in class ParserSettings
public int getMaxChunkExtLength()
getMaxChunkExtLength
in class ParserSettings
public Uri.ParsingMode getUriParsingMode()
getUriParsingMode
in class ParserSettings
public int getMaxHeaderCount()
getMaxHeaderCount
in class ParserSettings
public long getMaxContentLength()
getMaxContentLength
in class ParserSettings
public long getMaxToStrictBytes()
getMaxToStrictBytes
in class ParserSettings
public int getMaxHeaderValueLength()
getMaxHeaderValueLength
in class ParserSettings
public boolean getIncludeTlsSessionInfoHeader()
getIncludeTlsSessionInfoHeader
in class ParserSettings
public boolean getIncludeSslSessionAttribute()
getIncludeSslSessionAttribute
in class ParserSettings
public boolean getIllegalHeaderWarnings()
getIllegalHeaderWarnings
in class ParserSettings
public scala.collection.immutable.Set<java.lang.String> getIgnoreIllegalHeaderFor()
getIgnoreIllegalHeaderFor
in class ParserSettings
public int getMaxHeaderNameLength()
getMaxHeaderNameLength
in class ParserSettings
public int getMaxChunkSize()
getMaxChunkSize
in class ParserSettings
public int getMaxResponseReasonLength()
getMaxResponseReasonLength
in class ParserSettings
public int getMaxUriLength()
getMaxUriLength
in class ParserSettings
public int getMaxMethodLength()
getMaxMethodLength
in class ParserSettings
public int getMaxCommentParsingDepth()
getMaxCommentParsingDepth
in class ParserSettings
public ParserSettings.ErrorLoggingVerbosity getErrorLoggingVerbosity()
getErrorLoggingVerbosity
in class ParserSettings
public ParserSettings.IllegalResponseHeaderNameProcessingMode getIllegalResponseHeaderNameProcessingMode()
getIllegalResponseHeaderNameProcessingMode
in class ParserSettings
public ParserSettings.IllegalResponseHeaderValueProcessingMode getIllegalResponseHeaderValueProcessingMode()
getIllegalResponseHeaderValueProcessingMode
in class ParserSettings
public ParserSettings.ConflictingContentTypeHeaderProcessingMode getConflictingContentTypeHeaderProcessingMode()
getConflictingContentTypeHeaderProcessingMode
in class ParserSettings
public java.lang.Object getCustomMethods()
public java.lang.Object getCustomStatusCodes()
public java.lang.Object getCustomMediaTypes()
public boolean getModeledHeaderParsing()
getModeledHeaderParsing
in class ParserSettings
public ParserSettings withMaxUriLength(int newValue)
withMaxUriLength
in class ParserSettings
public ParserSettings withMaxMethodLength(int newValue)
withMaxMethodLength
in class ParserSettings
public ParserSettings withMaxResponseReasonLength(int newValue)
withMaxResponseReasonLength
in class ParserSettings
public ParserSettings withMaxHeaderNameLength(int newValue)
withMaxHeaderNameLength
in class ParserSettings
public ParserSettings withMaxHeaderValueLength(int newValue)
withMaxHeaderValueLength
in class ParserSettings
public ParserSettings withMaxHeaderCount(int newValue)
withMaxHeaderCount
in class ParserSettings
public ParserSettings withMaxContentLength(long newValue)
withMaxContentLength
in class ParserSettings
public ParserSettings withMaxContentLength(scala.Option<java.lang.Object> newValue)
public ParserSettings withMaxToStrictBytes(long newValue)
withMaxToStrictBytes
in class ParserSettings
public ParserSettings withMaxChunkExtLength(int newValue)
withMaxChunkExtLength
in class ParserSettings
public ParserSettings withMaxChunkSize(int newValue)
withMaxChunkSize
in class ParserSettings
public ParserSettings withMaxCommentParsingDepth(int newValue)
withMaxCommentParsingDepth
in class ParserSettings
public ParserSettings withIllegalHeaderWarnings(boolean newValue)
withIllegalHeaderWarnings
in class ParserSettings
public ParserSettings withIncludeTlsSessionInfoHeader(boolean newValue)
withIncludeTlsSessionInfoHeader
in class ParserSettings
public ParserSettings withIncludeSslSessionAttribute(boolean newValue)
withIncludeSslSessionAttribute
in class ParserSettings
public ParserSettings withModeledHeaderParsing(boolean newValue)
withModeledHeaderParsing
in class ParserSettings
public ParserSettings withIgnoreIllegalHeaderFor(scala.collection.immutable.List<java.lang.String> newValue)
withIgnoreIllegalHeaderFor
in class ParserSettings
public ParserSettings withUriParsingMode(Uri.ParsingMode newValue)
public ParserSettings withCookieParsingMode(ParserSettings.CookieParsingMode newValue)
public ParserSettings withErrorLoggingVerbosity(ParserSettings.ErrorLoggingVerbosity newValue)
public ParserSettings withHeaderValueCacheLimits(scala.collection.immutable.Map<java.lang.String,java.lang.Object> newValue)
public ParserSettings withCustomMethods(scala.collection.immutable.Seq<HttpMethod> methods)
public ParserSettings withCustomStatusCodes(scala.collection.immutable.Seq<StatusCode> codes)
public ParserSettings withCustomMediaTypes(scala.collection.immutable.Seq<MediaType> types)
public ParserSettings withIllegalResponseHeaderNameProcessingMode(ParserSettings.IllegalResponseHeaderNameProcessingMode newValue)
public ParserSettings withIllegalResponseHeaderValueProcessingMode(ParserSettings.IllegalResponseHeaderValueProcessingMode newValue)
public ParserSettings withConflictingContentTypeHeaderProcessingMode(ParserSettings.ConflictingContentTypeHeaderProcessingMode newValue)