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 interfaceParserSettings.ConflictingContentTypeHeaderProcessingModestatic classParserSettings.ConflictingContentTypeHeaderProcessingMode$static interfaceParserSettings.CookieParsingModestatic classParserSettings.CookieParsingMode$static interfaceParserSettings.ErrorLoggingVerbositystatic classParserSettings.ErrorLoggingVerbosity$static interfaceParserSettings.IllegalResponseHeaderNameProcessingModestatic classParserSettings.IllegalResponseHeaderNameProcessingMode$static interfaceParserSettings.IllegalResponseHeaderValueProcessingModestatic classParserSettings.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:
maxHeaderNameLengthin classHttpHeaderParser.Settings
-
maxHeaderValueLength
public abstract int maxHeaderValueLength()
- Specified by:
maxHeaderValueLengthin classHttpHeaderParser.Settings
-
maxHeaderCount
public abstract int maxHeaderCount()
- Specified by:
maxHeaderCountin 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:
maxCommentParsingDepthin classHeaderParser.Settings
-
uriParsingMode
public abstract Uri.ParsingMode uriParsingMode()
- Specified by:
uriParsingModein classHeaderParser.Settings
-
cookieParsingMode
public abstract ParserSettings.CookieParsingMode cookieParsingMode()
- Specified by:
cookieParsingModein classHeaderParser.Settings
-
illegalHeaderWarnings
public abstract boolean illegalHeaderWarnings()
- Specified by:
illegalHeaderWarningsin classBodyPartParser.Settings
-
ignoreIllegalHeaderFor
public abstract scala.collection.immutable.Set<java.lang.String> ignoreIllegalHeaderFor()
- Specified by:
ignoreIllegalHeaderForin classHttpHeaderParser.Settings
-
errorLoggingVerbosity
public abstract ParserSettings.ErrorLoggingVerbosity errorLoggingVerbosity()
- Specified by:
errorLoggingVerbosityin classHttpHeaderParser.Settings
-
illegalResponseHeaderNameProcessingMode
public abstract ParserSettings.IllegalResponseHeaderNameProcessingMode illegalResponseHeaderNameProcessingMode()
- Specified by:
illegalResponseHeaderNameProcessingModein classHttpHeaderParser.Settings
-
illegalResponseHeaderValueProcessingMode
public abstract ParserSettings.IllegalResponseHeaderValueProcessingMode illegalResponseHeaderValueProcessingMode()
- Specified by:
illegalResponseHeaderValueProcessingModein classHttpHeaderParser.Settings
-
conflictingContentTypeHeaderProcessingMode
public abstract ParserSettings.ConflictingContentTypeHeaderProcessingMode conflictingContentTypeHeaderProcessingMode()
-
headerValueCacheLimits
public abstract scala.collection.immutable.Map<java.lang.String,java.lang.Object> headerValueCacheLimits()
- Specified by:
headerValueCacheLimitsin 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:
customMediaTypesin classHttpHeaderParser.Settings
-
modeledHeaderParsing
public abstract boolean modeledHeaderParsing()
- Specified by:
modeledHeaderParsingin classHttpHeaderParser.Settings
-
getCookieParsingMode
public ParserSettings.CookieParsingMode getCookieParsingMode()
- Specified by:
getCookieParsingModein classParserSettings
-
getHeaderValueCacheLimits
public java.util.Map<java.lang.String,java.lang.Object> getHeaderValueCacheLimits()
- Specified by:
getHeaderValueCacheLimitsin classParserSettings
-
getMaxChunkExtLength
public int getMaxChunkExtLength()
- Specified by:
getMaxChunkExtLengthin classParserSettings
-
getUriParsingMode
public Uri.ParsingMode getUriParsingMode()
- Specified by:
getUriParsingModein classParserSettings
-
getMaxHeaderCount
public int getMaxHeaderCount()
- Specified by:
getMaxHeaderCountin classParserSettings
-
getMaxContentLength
public long getMaxContentLength()
- Specified by:
getMaxContentLengthin classParserSettings
-
getMaxToStrictBytes
public long getMaxToStrictBytes()
- Specified by:
getMaxToStrictBytesin classParserSettings
-
getMaxHeaderValueLength
public int getMaxHeaderValueLength()
- Specified by:
getMaxHeaderValueLengthin classParserSettings
-
getIncludeTlsSessionInfoHeader
public boolean getIncludeTlsSessionInfoHeader()
- Specified by:
getIncludeTlsSessionInfoHeaderin classParserSettings
-
getIncludeSslSessionAttribute
public boolean getIncludeSslSessionAttribute()
- Specified by:
getIncludeSslSessionAttributein classParserSettings
-
getIllegalHeaderWarnings
public boolean getIllegalHeaderWarnings()
- Specified by:
getIllegalHeaderWarningsin classParserSettings
-
getIgnoreIllegalHeaderFor
public scala.collection.immutable.Set<java.lang.String> getIgnoreIllegalHeaderFor()
- Specified by:
getIgnoreIllegalHeaderForin classParserSettings
-
getMaxHeaderNameLength
public int getMaxHeaderNameLength()
- Specified by:
getMaxHeaderNameLengthin classParserSettings
-
getMaxChunkSize
public int getMaxChunkSize()
- Specified by:
getMaxChunkSizein classParserSettings
-
getMaxResponseReasonLength
public int getMaxResponseReasonLength()
- Specified by:
getMaxResponseReasonLengthin classParserSettings
-
getMaxUriLength
public int getMaxUriLength()
- Specified by:
getMaxUriLengthin classParserSettings
-
getMaxMethodLength
public int getMaxMethodLength()
- Specified by:
getMaxMethodLengthin classParserSettings
-
getMaxCommentParsingDepth
public int getMaxCommentParsingDepth()
- Specified by:
getMaxCommentParsingDepthin classParserSettings
-
getErrorLoggingVerbosity
public ParserSettings.ErrorLoggingVerbosity getErrorLoggingVerbosity()
- Specified by:
getErrorLoggingVerbosityin classParserSettings
-
getIllegalResponseHeaderNameProcessingMode
public ParserSettings.IllegalResponseHeaderNameProcessingMode getIllegalResponseHeaderNameProcessingMode()
- Specified by:
getIllegalResponseHeaderNameProcessingModein classParserSettings
-
getIllegalResponseHeaderValueProcessingMode
public ParserSettings.IllegalResponseHeaderValueProcessingMode getIllegalResponseHeaderValueProcessingMode()
- Specified by:
getIllegalResponseHeaderValueProcessingModein classParserSettings
-
getConflictingContentTypeHeaderProcessingMode
public ParserSettings.ConflictingContentTypeHeaderProcessingMode getConflictingContentTypeHeaderProcessingMode()
- Specified by:
getConflictingContentTypeHeaderProcessingModein 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:
getModeledHeaderParsingin classParserSettings
-
withMaxUriLength
public ParserSettings withMaxUriLength(int newValue)
- Overrides:
withMaxUriLengthin classParserSettings
-
withMaxMethodLength
public ParserSettings withMaxMethodLength(int newValue)
- Overrides:
withMaxMethodLengthin classParserSettings
-
withMaxResponseReasonLength
public ParserSettings withMaxResponseReasonLength(int newValue)
- Overrides:
withMaxResponseReasonLengthin classParserSettings
-
withMaxHeaderNameLength
public ParserSettings withMaxHeaderNameLength(int newValue)
- Overrides:
withMaxHeaderNameLengthin classParserSettings
-
withMaxHeaderValueLength
public ParserSettings withMaxHeaderValueLength(int newValue)
- Overrides:
withMaxHeaderValueLengthin classParserSettings
-
withMaxHeaderCount
public ParserSettings withMaxHeaderCount(int newValue)
- Overrides:
withMaxHeaderCountin classParserSettings
-
withMaxContentLength
public ParserSettings withMaxContentLength(long newValue)
- Overrides:
withMaxContentLengthin classParserSettings
-
withMaxContentLength
public ParserSettings withMaxContentLength(scala.Option<java.lang.Object> newValue)
-
withMaxToStrictBytes
public ParserSettings withMaxToStrictBytes(long newValue)
- Overrides:
withMaxToStrictBytesin classParserSettings
-
withMaxChunkExtLength
public ParserSettings withMaxChunkExtLength(int newValue)
- Overrides:
withMaxChunkExtLengthin classParserSettings
-
withMaxChunkSize
public ParserSettings withMaxChunkSize(int newValue)
- Overrides:
withMaxChunkSizein classParserSettings
-
withMaxCommentParsingDepth
public ParserSettings withMaxCommentParsingDepth(int newValue)
- Overrides:
withMaxCommentParsingDepthin classParserSettings
-
withIllegalHeaderWarnings
public ParserSettings withIllegalHeaderWarnings(boolean newValue)
- Overrides:
withIllegalHeaderWarningsin classParserSettings
-
withIncludeTlsSessionInfoHeader
public ParserSettings withIncludeTlsSessionInfoHeader(boolean newValue)
- Overrides:
withIncludeTlsSessionInfoHeaderin classParserSettings
-
withIncludeSslSessionAttribute
public ParserSettings withIncludeSslSessionAttribute(boolean newValue)
- Overrides:
withIncludeSslSessionAttributein classParserSettings
-
withModeledHeaderParsing
public ParserSettings withModeledHeaderParsing(boolean newValue)
- Overrides:
withModeledHeaderParsingin classParserSettings
-
withIgnoreIllegalHeaderFor
public ParserSettings withIgnoreIllegalHeaderFor(scala.collection.immutable.List<java.lang.String> newValue)
- Overrides:
withIgnoreIllegalHeaderForin 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)
-
-