Class ParserSettings
java.lang.Object
org.apache.pekko.http.impl.model.parser.HeaderParser.Settings
org.apache.pekko.http.impl.engine.parsing.HttpHeaderParser.Settings
org.apache.pekko.http.impl.engine.parsing.BodyPartParser.Settings
org.apache.pekko.http.javadsl.settings.ParserSettings
org.apache.pekko.http.scaladsl.settings.ParserSettings
- Direct Known Subclasses:
ParserSettingsImpl
Public API but not intended for subclassing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic classstatic interfacestatic classstatic interfacestatic classstatic interfacestatic classstatic interfacestatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParserSettingsapply(com.typesafe.config.Config config) Deprecated.Use forServer or forClient instead.static ParserSettingsDeprecated.Use forServer or forClient instead.abstract ParserSettings.CookieParsingModeabstract scala.Function1<String,scala.Option<HttpMethod>> abstract scala.Function1<Object,scala.Option<StatusCode>> abstract ParserSettings.ErrorLoggingVerbositystatic ParserSettingsforClient(org.apache.pekko.actor.ClassicActorSystemProvider system) static ParserSettingsforServer(org.apache.pekko.actor.ClassicActorSystemProvider system) scala.collection.immutable.Set<String>booleanbooleanbooleanintintintlongintintintintintlongintbooleanabstract scala.collection.immutable.Set<String>abstract booleanabstract booleanabstract booleanabstract intabstract intabstract intabstract longabstract intabstract intabstract intabstract intabstract intabstract longabstract intabstract booleanabstract Uri.ParsingModewithConflictingContentTypeHeaderProcessingMode(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 org.apache.pekko.http.javadsl.settings.ParserSettings
create, create, create, withCookieParsingMode, withCustomMediaTypes, withCustomMediaTypes, withCustomMethods, withCustomMethods, withCustomStatusCodes, withCustomStatusCodes, withErrorLoggingVerbosity, withHeaderValueCacheLimits, withUriParsingModeMethods inherited from class org.apache.pekko.http.impl.engine.parsing.BodyPartParser.Settings
defaultHeaderValueCacheLimitMethods inherited from class org.apache.pekko.http.impl.engine.parsing.HttpHeaderParser.Settings
headerValueCacheLimit
-
Constructor Details
-
ParserSettings
public ParserSettings()
-
-
Method Details
-
apply
Deprecated.Use forServer or forClient instead. Since Akka HTTP 10.2.0. -
apply
Deprecated.Use forServer or forClient instead. Since Akka HTTP 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:
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
- Specified by:
uriParsingModein classHeaderParser.Settings
-
cookieParsingMode
- Specified by:
cookieParsingModein classHeaderParser.Settings
-
illegalHeaderWarnings
public abstract boolean illegalHeaderWarnings()- Specified by:
illegalHeaderWarningsin classBodyPartParser.Settings
-
ignoreIllegalHeaderFor
- Specified by:
ignoreIllegalHeaderForin classHttpHeaderParser.Settings
-
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
- Specified by:
headerValueCacheLimitsin classParserSettings
-
includeTlsSessionInfoHeader
public abstract boolean includeTlsSessionInfoHeader() -
includeSslSessionAttribute
public abstract boolean includeSslSessionAttribute() -
customMethods
-
customStatusCodes
-
customMediaTypes
- Specified by:
customMediaTypesin classHttpHeaderParser.Settings
-
modeledHeaderParsing
public abstract boolean modeledHeaderParsing()- Specified by:
modeledHeaderParsingin classHttpHeaderParser.Settings
-
getCookieParsingMode
- Specified by:
getCookieParsingModein classParserSettings
-
getHeaderValueCacheLimits
- Specified by:
getHeaderValueCacheLimitsin classParserSettings
-
getMaxChunkExtLength
public int getMaxChunkExtLength()- Specified by:
getMaxChunkExtLengthin classParserSettings
-
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
- 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
- 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
-
getCustomStatusCodes
-
getCustomMediaTypes
-
getModeledHeaderParsing
public boolean getModeledHeaderParsing()- Specified by:
getModeledHeaderParsingin classParserSettings
-
withMaxUriLength
- Overrides:
withMaxUriLengthin classParserSettings
-
withMaxMethodLength
- Overrides:
withMaxMethodLengthin classParserSettings
-
withMaxResponseReasonLength
- Overrides:
withMaxResponseReasonLengthin classParserSettings
-
withMaxHeaderNameLength
- Overrides:
withMaxHeaderNameLengthin classParserSettings
-
withMaxHeaderValueLength
- Overrides:
withMaxHeaderValueLengthin classParserSettings
-
withMaxHeaderCount
- Overrides:
withMaxHeaderCountin classParserSettings
-
withMaxContentLength
- Overrides:
withMaxContentLengthin classParserSettings
-
withMaxContentLength
-
withMaxToStrictBytes
- Overrides:
withMaxToStrictBytesin classParserSettings
-
withMaxChunkExtLength
- Overrides:
withMaxChunkExtLengthin classParserSettings
-
withMaxChunkSize
- Overrides:
withMaxChunkSizein classParserSettings
-
withMaxCommentParsingDepth
- Overrides:
withMaxCommentParsingDepthin classParserSettings
-
withIllegalHeaderWarnings
- Overrides:
withIllegalHeaderWarningsin classParserSettings
-
withIncludeTlsSessionInfoHeader
- Overrides:
withIncludeTlsSessionInfoHeaderin classParserSettings
-
withIncludeSslSessionAttribute
- Overrides:
withIncludeSslSessionAttributein classParserSettings
-
withModeledHeaderParsing
- Overrides:
withModeledHeaderParsingin classParserSettings
-
withIgnoreIllegalHeaderFor
- Overrides:
withIgnoreIllegalHeaderForin 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)
-