Package akka.http.scaladsl.settings
Class ParserSettings
- java.lang.Object
-
- Direct Known Subclasses:
ParserSettingsImpl
public abstract class ParserSettings extends ParserSettings
Public API but not intended for subclassing
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 Summary
Constructors Constructor Description ParserSettings()
-
Method Summary
-
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
-
-
-
-
Method Detail
-
apply
public static ParserSettings apply(com.typesafe.config.Config config)
Deprecated.Use forServer or forClient instead. Since 10.2.0.
-
apply
public static ParserSettings apply(java.lang.String configOverrides)
Deprecated.Use forServer or forClient instead. Since 10.2.0.
-
forServer
public static ParserSettings forServer(akka.actor.ClassicActorSystemProvider system)
-
forClient
public static ParserSettings forClient(akka.actor.ClassicActorSystemProvider system)
-
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
public abstract Uri.ParsingMode uriParsingMode()
- Specified by:
uriParsingMode
in classHeaderParser.Settings
-
cookieParsingMode
public abstract ParserSettings.CookieParsingMode cookieParsingMode()
- Specified by:
cookieParsingMode
in classHeaderParser.Settings
-
illegalHeaderWarnings
public abstract boolean illegalHeaderWarnings()
- Specified by:
illegalHeaderWarnings
in classBodyPartParser.Settings
-
ignoreIllegalHeaderFor
public abstract scala.collection.immutable.Set<java.lang.String> ignoreIllegalHeaderFor()
- Specified by:
ignoreIllegalHeaderFor
in classHttpHeaderParser.Settings
-
errorLoggingVerbosity
public abstract ParserSettings.ErrorLoggingVerbosity 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
public abstract scala.collection.immutable.Map<java.lang.String,java.lang.Object> headerValueCacheLimits()
- Specified by:
headerValueCacheLimits
in classParserSettings
-
includeTlsSessionInfoHeader
public abstract boolean includeTlsSessionInfoHeader()
-
includeSslSessionAttribute
public abstract boolean includeSslSessionAttribute()
-
customMethods
public abstract scala.Function1<java.lang.String,scala.Option<HttpMethod>> customMethods()
-
customStatusCodes
public abstract scala.Function1<java.lang.Object,scala.Option<StatusCode>> customStatusCodes()
-
customMediaTypes
public abstract scala.Function2<java.lang.String,java.lang.String,scala.Option<MediaType>> customMediaTypes()
- Specified by:
customMediaTypes
in classHttpHeaderParser.Settings
-
modeledHeaderParsing
public abstract boolean modeledHeaderParsing()
- Specified by:
modeledHeaderParsing
in classHttpHeaderParser.Settings
-
getCookieParsingMode
public ParserSettings.CookieParsingMode getCookieParsingMode()
- Specified by:
getCookieParsingMode
in classParserSettings
-
getHeaderValueCacheLimits
public java.util.Map<java.lang.String,java.lang.Object> getHeaderValueCacheLimits()
- Specified by:
getHeaderValueCacheLimits
in classParserSettings
-
getMaxChunkExtLength
public int getMaxChunkExtLength()
- Specified by:
getMaxChunkExtLength
in classParserSettings
-
getUriParsingMode
public Uri.ParsingMode 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
public scala.collection.immutable.Set<java.lang.String> 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
public ParserSettings.ErrorLoggingVerbosity 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
public java.lang.Object getCustomMethods()
-
getCustomStatusCodes
public java.lang.Object getCustomStatusCodes()
-
getCustomMediaTypes
public java.lang.Object getCustomMediaTypes()
-
getModeledHeaderParsing
public boolean getModeledHeaderParsing()
- Specified by:
getModeledHeaderParsing
in classParserSettings
-
withMaxUriLength
public ParserSettings withMaxUriLength(int newValue)
- Overrides:
withMaxUriLength
in classParserSettings
-
withMaxMethodLength
public ParserSettings withMaxMethodLength(int newValue)
- Overrides:
withMaxMethodLength
in classParserSettings
-
withMaxResponseReasonLength
public ParserSettings withMaxResponseReasonLength(int newValue)
- Overrides:
withMaxResponseReasonLength
in classParserSettings
-
withMaxHeaderNameLength
public ParserSettings withMaxHeaderNameLength(int newValue)
- Overrides:
withMaxHeaderNameLength
in classParserSettings
-
withMaxHeaderValueLength
public ParserSettings withMaxHeaderValueLength(int newValue)
- Overrides:
withMaxHeaderValueLength
in classParserSettings
-
withMaxHeaderCount
public ParserSettings withMaxHeaderCount(int newValue)
- Overrides:
withMaxHeaderCount
in classParserSettings
-
withMaxContentLength
public ParserSettings withMaxContentLength(long newValue)
- Overrides:
withMaxContentLength
in classParserSettings
-
withMaxContentLength
public ParserSettings withMaxContentLength(scala.Option<java.lang.Object> newValue)
-
withMaxToStrictBytes
public ParserSettings withMaxToStrictBytes(long newValue)
- Overrides:
withMaxToStrictBytes
in classParserSettings
-
withMaxChunkExtLength
public ParserSettings withMaxChunkExtLength(int newValue)
- Overrides:
withMaxChunkExtLength
in classParserSettings
-
withMaxChunkSize
public ParserSettings withMaxChunkSize(int newValue)
- Overrides:
withMaxChunkSize
in classParserSettings
-
withMaxCommentParsingDepth
public ParserSettings withMaxCommentParsingDepth(int newValue)
- Overrides:
withMaxCommentParsingDepth
in classParserSettings
-
withIllegalHeaderWarnings
public ParserSettings withIllegalHeaderWarnings(boolean newValue)
- Overrides:
withIllegalHeaderWarnings
in classParserSettings
-
withIncludeTlsSessionInfoHeader
public ParserSettings withIncludeTlsSessionInfoHeader(boolean newValue)
- Overrides:
withIncludeTlsSessionInfoHeader
in classParserSettings
-
withIncludeSslSessionAttribute
public ParserSettings withIncludeSslSessionAttribute(boolean newValue)
- Overrides:
withIncludeSslSessionAttribute
in classParserSettings
-
withModeledHeaderParsing
public ParserSettings withModeledHeaderParsing(boolean newValue)
- Overrides:
withModeledHeaderParsing
in classParserSettings
-
withIgnoreIllegalHeaderFor
public ParserSettings withIgnoreIllegalHeaderFor(scala.collection.immutable.List<java.lang.String> newValue)
- Overrides:
withIgnoreIllegalHeaderFor
in classParserSettings
-
withUriParsingMode
public ParserSettings withUriParsingMode(Uri.ParsingMode newValue)
-
withCookieParsingMode
public ParserSettings withCookieParsingMode(ParserSettings.CookieParsingMode newValue)
-
withErrorLoggingVerbosity
public ParserSettings withErrorLoggingVerbosity(ParserSettings.ErrorLoggingVerbosity newValue)
-
withHeaderValueCacheLimits
public ParserSettings withHeaderValueCacheLimits(scala.collection.immutable.Map<java.lang.String,java.lang.Object> newValue)
-
withCustomMethods
public ParserSettings withCustomMethods(scala.collection.immutable.Seq<HttpMethod> methods)
-
withCustomStatusCodes
public ParserSettings withCustomStatusCodes(scala.collection.immutable.Seq<StatusCode> codes)
-
withCustomMediaTypes
public ParserSettings withCustomMediaTypes(scala.collection.immutable.Seq<MediaType> types)
-
withIllegalResponseHeaderNameProcessingMode
public ParserSettings withIllegalResponseHeaderNameProcessingMode(ParserSettings.IllegalResponseHeaderNameProcessingMode newValue)
-
withIllegalResponseHeaderValueProcessingMode
public ParserSettings withIllegalResponseHeaderValueProcessingMode(ParserSettings.IllegalResponseHeaderValueProcessingMode newValue)
-
withConflictingContentTypeHeaderProcessingMode
public ParserSettings withConflictingContentTypeHeaderProcessingMode(ParserSettings.ConflictingContentTypeHeaderProcessingMode newValue)
-
-