Package akka.http.scaladsl.settings
Class ParserSettings
- Direct Known Subclasses:
ParserSettingsImpl
Public API but not intended for subclassing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
static interface
static class
static interface
static class
static interface
static class
static interface
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParserSettings
apply
(com.typesafe.config.Config config) Deprecated.Use forServer or forClient instead.static ParserSettings
Deprecated.Use forServer or forClient instead.abstract ParserSettings.CookieParsingMode
abstract scala.Function1<String,
scala.Option<HttpMethod>> abstract scala.Function1<Object,
scala.Option<StatusCode>> abstract ParserSettings.ErrorLoggingVerbosity
static ParserSettings
forClient
(akka.actor.ClassicActorSystemProvider system) static ParserSettings
forServer
(akka.actor.ClassicActorSystemProvider system) scala.collection.immutable.Set<String>
boolean
boolean
boolean
int
int
int
long
int
int
int
int
int
long
int
boolean
abstract scala.collection.immutable.Set<String>
abstract boolean
abstract boolean
abstract boolean
abstract int
abstract int
abstract int
abstract long
abstract int
abstract int
abstract int
abstract int
abstract int
abstract long
abstract int
abstract boolean
abstract Uri.ParsingMode
withConflictingContentTypeHeaderProcessingMode
(ParserSettings.ConflictingContentTypeHeaderProcessingMode newValue) withCustomMediaTypes
(scala.collection.immutable.Seq<MediaType> types) withCustomMethods
(scala.collection.immutable.Seq<HttpMethod> methods) withCustomStatusCodes
(scala.collection.immutable.Seq<StatusCode> codes) withHeaderValueCacheLimits
(scala.collection.immutable.Map<String, Object> newValue) withIgnoreIllegalHeaderFor
(scala.collection.immutable.List<String> newValue) withIllegalHeaderWarnings
(boolean newValue) withIllegalResponseHeaderNameProcessingMode
(ParserSettings.IllegalResponseHeaderNameProcessingMode newValue) withIllegalResponseHeaderValueProcessingMode
(ParserSettings.IllegalResponseHeaderValueProcessingMode newValue) withIncludeSslSessionAttribute
(boolean newValue) withIncludeTlsSessionInfoHeader
(boolean newValue) withMaxChunkExtLength
(int newValue) withMaxChunkSize
(int newValue) withMaxCommentParsingDepth
(int newValue) withMaxContentLength
(long newValue) withMaxContentLength
(scala.Option<Object> newValue) withMaxHeaderCount
(int newValue) withMaxHeaderNameLength
(int newValue) withMaxHeaderValueLength
(int newValue) withMaxMethodLength
(int newValue) withMaxResponseReasonLength
(int newValue) withMaxToStrictBytes
(long newValue) withMaxUriLength
(int newValue) withModeledHeaderParsing
(boolean newValue) withUriParsingMode
(Uri.ParsingMode newValue) Methods inherited from class akka.http.javadsl.settings.ParserSettings
create, create, create, withCookieParsingMode, withCustomMediaTypes, withCustomMediaTypes, withCustomMethods, withCustomMethods, withCustomStatusCodes, withCustomStatusCodes, withErrorLoggingVerbosity, withHeaderValueCacheLimits, withUriParsingMode
Methods inherited from class akka.http.impl.engine.parsing.BodyPartParser.Settings
defaultHeaderValueCacheLimit
Methods inherited from class akka.http.impl.engine.parsing.HttpHeaderParser.Settings
headerValueCacheLimit
-
Constructor Details
-
ParserSettings
public ParserSettings()
-
-
Method Details
-
apply
Deprecated.Use forServer or forClient instead. Since 10.2.0. -
apply
Deprecated.Use forServer or forClient instead. Since 10.2.0. -
forServer
-
forClient
-
maxUriLength
public abstract int maxUriLength() -
maxMethodLength
public abstract int maxMethodLength() -
maxResponseReasonLength
public abstract int maxResponseReasonLength() -
maxHeaderNameLength
public abstract int maxHeaderNameLength()- Specified by:
maxHeaderNameLength
in classHttpHeaderParser.Settings
-
maxHeaderValueLength
public abstract int maxHeaderValueLength()- Specified by:
maxHeaderValueLength
in classHttpHeaderParser.Settings
-
maxHeaderCount
public abstract int maxHeaderCount()- Specified by:
maxHeaderCount
in classBodyPartParser.Settings
-
maxContentLength
public abstract long maxContentLength() -
maxToStrictBytes
public abstract long maxToStrictBytes() -
maxChunkExtLength
public abstract int maxChunkExtLength() -
maxChunkSize
public abstract int maxChunkSize() -
maxCommentParsingDepth
public abstract int maxCommentParsingDepth()- Specified by:
maxCommentParsingDepth
in classHeaderParser.Settings
-
uriParsingMode
- Specified by:
uriParsingMode
in classHeaderParser.Settings
-
cookieParsingMode
- Specified by:
cookieParsingMode
in classHeaderParser.Settings
-
illegalHeaderWarnings
public abstract boolean illegalHeaderWarnings()- Specified by:
illegalHeaderWarnings
in classBodyPartParser.Settings
-
ignoreIllegalHeaderFor
- Specified by:
ignoreIllegalHeaderFor
in classHttpHeaderParser.Settings
-
errorLoggingVerbosity
- Specified by:
errorLoggingVerbosity
in classHttpHeaderParser.Settings
-
illegalResponseHeaderNameProcessingMode
public abstract ParserSettings.IllegalResponseHeaderNameProcessingMode illegalResponseHeaderNameProcessingMode()- Specified by:
illegalResponseHeaderNameProcessingMode
in classHttpHeaderParser.Settings
-
illegalResponseHeaderValueProcessingMode
public abstract ParserSettings.IllegalResponseHeaderValueProcessingMode illegalResponseHeaderValueProcessingMode()- Specified by:
illegalResponseHeaderValueProcessingMode
in classHttpHeaderParser.Settings
-
conflictingContentTypeHeaderProcessingMode
public abstract ParserSettings.ConflictingContentTypeHeaderProcessingMode conflictingContentTypeHeaderProcessingMode() -
headerValueCacheLimits
- Specified by:
headerValueCacheLimits
in classParserSettings
-
includeTlsSessionInfoHeader
public abstract boolean includeTlsSessionInfoHeader() -
includeSslSessionAttribute
public abstract boolean includeSslSessionAttribute() -
customMethods
-
customStatusCodes
-
customMediaTypes
- Specified by:
customMediaTypes
in classHttpHeaderParser.Settings
-
modeledHeaderParsing
public abstract boolean modeledHeaderParsing()- Specified by:
modeledHeaderParsing
in classHttpHeaderParser.Settings
-
getCookieParsingMode
- Specified by:
getCookieParsingMode
in classParserSettings
-
getHeaderValueCacheLimits
- Specified by:
getHeaderValueCacheLimits
in classParserSettings
-
getMaxChunkExtLength
public int getMaxChunkExtLength()- Specified by:
getMaxChunkExtLength
in classParserSettings
-
getUriParsingMode
- Specified by:
getUriParsingMode
in classParserSettings
-
getMaxHeaderCount
public int getMaxHeaderCount()- Specified by:
getMaxHeaderCount
in classParserSettings
-
getMaxContentLength
public long getMaxContentLength()- Specified by:
getMaxContentLength
in classParserSettings
-
getMaxToStrictBytes
public long getMaxToStrictBytes()- Specified by:
getMaxToStrictBytes
in classParserSettings
-
getMaxHeaderValueLength
public int getMaxHeaderValueLength()- Specified by:
getMaxHeaderValueLength
in classParserSettings
-
getIncludeTlsSessionInfoHeader
public boolean getIncludeTlsSessionInfoHeader()- Specified by:
getIncludeTlsSessionInfoHeader
in classParserSettings
-
getIncludeSslSessionAttribute
public boolean getIncludeSslSessionAttribute()- Specified by:
getIncludeSslSessionAttribute
in classParserSettings
-
getIllegalHeaderWarnings
public boolean getIllegalHeaderWarnings()- Specified by:
getIllegalHeaderWarnings
in classParserSettings
-
getIgnoreIllegalHeaderFor
- Specified by:
getIgnoreIllegalHeaderFor
in classParserSettings
-
getMaxHeaderNameLength
public int getMaxHeaderNameLength()- Specified by:
getMaxHeaderNameLength
in classParserSettings
-
getMaxChunkSize
public int getMaxChunkSize()- Specified by:
getMaxChunkSize
in classParserSettings
-
getMaxResponseReasonLength
public int getMaxResponseReasonLength()- Specified by:
getMaxResponseReasonLength
in classParserSettings
-
getMaxUriLength
public int getMaxUriLength()- Specified by:
getMaxUriLength
in classParserSettings
-
getMaxMethodLength
public int getMaxMethodLength()- Specified by:
getMaxMethodLength
in classParserSettings
-
getMaxCommentParsingDepth
public int getMaxCommentParsingDepth()- Specified by:
getMaxCommentParsingDepth
in classParserSettings
-
getErrorLoggingVerbosity
- Specified by:
getErrorLoggingVerbosity
in classParserSettings
-
getIllegalResponseHeaderNameProcessingMode
public ParserSettings.IllegalResponseHeaderNameProcessingMode getIllegalResponseHeaderNameProcessingMode()- Specified by:
getIllegalResponseHeaderNameProcessingMode
in classParserSettings
-
getIllegalResponseHeaderValueProcessingMode
public ParserSettings.IllegalResponseHeaderValueProcessingMode getIllegalResponseHeaderValueProcessingMode()- Specified by:
getIllegalResponseHeaderValueProcessingMode
in classParserSettings
-
getConflictingContentTypeHeaderProcessingMode
public ParserSettings.ConflictingContentTypeHeaderProcessingMode getConflictingContentTypeHeaderProcessingMode()- Specified by:
getConflictingContentTypeHeaderProcessingMode
in classParserSettings
-
getCustomMethods
-
getCustomStatusCodes
-
getCustomMediaTypes
-
getModeledHeaderParsing
public boolean getModeledHeaderParsing()- Specified by:
getModeledHeaderParsing
in classParserSettings
-
withMaxUriLength
- Overrides:
withMaxUriLength
in classParserSettings
-
withMaxMethodLength
- Overrides:
withMaxMethodLength
in classParserSettings
-
withMaxResponseReasonLength
- Overrides:
withMaxResponseReasonLength
in classParserSettings
-
withMaxHeaderNameLength
- Overrides:
withMaxHeaderNameLength
in classParserSettings
-
withMaxHeaderValueLength
- Overrides:
withMaxHeaderValueLength
in classParserSettings
-
withMaxHeaderCount
- Overrides:
withMaxHeaderCount
in classParserSettings
-
withMaxContentLength
- Overrides:
withMaxContentLength
in classParserSettings
-
withMaxContentLength
-
withMaxToStrictBytes
- Overrides:
withMaxToStrictBytes
in classParserSettings
-
withMaxChunkExtLength
- Overrides:
withMaxChunkExtLength
in classParserSettings
-
withMaxChunkSize
- Overrides:
withMaxChunkSize
in classParserSettings
-
withMaxCommentParsingDepth
- Overrides:
withMaxCommentParsingDepth
in classParserSettings
-
withIllegalHeaderWarnings
- Overrides:
withIllegalHeaderWarnings
in classParserSettings
-
withIncludeTlsSessionInfoHeader
- Overrides:
withIncludeTlsSessionInfoHeader
in classParserSettings
-
withIncludeSslSessionAttribute
- Overrides:
withIncludeSslSessionAttribute
in classParserSettings
-
withModeledHeaderParsing
- Overrides:
withModeledHeaderParsing
in classParserSettings
-
withIgnoreIllegalHeaderFor
- Overrides:
withIgnoreIllegalHeaderFor
in classParserSettings
-
withUriParsingMode
-
withCookieParsingMode
-
withErrorLoggingVerbosity
-
withHeaderValueCacheLimits
public ParserSettings withHeaderValueCacheLimits(scala.collection.immutable.Map<String, Object> newValue) -
withCustomMethods
-
withCustomStatusCodes
-
withCustomMediaTypes
-
withIllegalResponseHeaderNameProcessingMode
public ParserSettings withIllegalResponseHeaderNameProcessingMode(ParserSettings.IllegalResponseHeaderNameProcessingMode newValue) -
withIllegalResponseHeaderValueProcessingMode
public ParserSettings withIllegalResponseHeaderValueProcessingMode(ParserSettings.IllegalResponseHeaderValueProcessingMode newValue) -
withConflictingContentTypeHeaderProcessingMode
public ParserSettings withConflictingContentTypeHeaderProcessingMode(ParserSettings.ConflictingContentTypeHeaderProcessingMode newValue)
-