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
- Direct Known Subclasses:
ParserSettings
Public API but not intended for subclassing
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParserSettingscreate(com.typesafe.config.Config config) Deprecated.Use forServer or forClient instead.static ParserSettingsDeprecated.Use forServer or forClient instead.static ParserSettingscreate(org.apache.pekko.actor.ActorSystem system) Deprecated.Use forServer or forClient instead.static ParserSettingsforClient(org.apache.pekko.actor.ClassicActorSystemProvider system) static ParserSettingsforServer(org.apache.pekko.actor.ClassicActorSystemProvider system) abstract ParserSettings.CookieParsingModeabstract Function<String,Optional<HttpMethod>> abstract Function<Object,Optional<StatusCode>> abstract ParserSettings.ErrorLoggingVerbosityabstract scala.collection.immutable.Set<String>abstract booleanabstract booleanabstract booleanabstract intabstract intabstract intabstract longabstract intabstract intabstract intabstract intabstract intabstract longabstract intabstract booleanabstract Uri.ParsingModewithCustomMediaTypes(MediaType... mediaTypes) withCustomMediaTypes(scala.collection.immutable.Seq<MediaType> mediaTypes) withCustomMethods(HttpMethod... methods) withCustomMethods(scala.collection.immutable.Seq<HttpMethod> methods) withCustomStatusCodes(StatusCode... codes) withCustomStatusCodes(scala.collection.immutable.Seq<StatusCode> codes) withHeaderValueCacheLimits(Map<String, Object> newValue) withIgnoreIllegalHeaderFor(scala.collection.immutable.List<String> newValue) withIllegalHeaderWarnings(boolean newValue) withIncludeSslSessionAttribute(boolean newValue) withIncludeTlsSessionInfoHeader(boolean newValue) withMaxChunkExtLength(int newValue) withMaxChunkSize(int newValue) withMaxCommentParsingDepth(int newValue) withMaxContentLength(long 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.impl.engine.parsing.BodyPartParser.Settings
defaultHeaderValueCacheLimit, illegalHeaderWarnings, maxHeaderCountMethods inherited from class org.apache.pekko.http.impl.engine.parsing.HttpHeaderParser.Settings
customMediaTypes, errorLoggingVerbosity, headerValueCacheLimit, ignoreIllegalHeaderFor, illegalResponseHeaderNameProcessingMode, illegalResponseHeaderValueProcessingMode, maxHeaderNameLength, maxHeaderValueLength, modeledHeaderParsingMethods inherited from class org.apache.pekko.http.impl.model.parser.HeaderParser.Settings
cookieParsingMode, maxCommentParsingDepth, uriParsingMode
-
Constructor Details
-
ParserSettings
public ParserSettings()
-
-
Method Details
-
create
Deprecated.Use forServer or forClient instead.- Parameters:
config- (undocumented)- Returns:
- (undocumented)
-
create
Deprecated.Use forServer or forClient instead.- Parameters:
configOverrides- (undocumented)- Returns:
- (undocumented)
-
create
Deprecated.Use forServer or forClient instead.- Parameters:
system- (undocumented)- Returns:
- (undocumented)
-
forServer
-
forClient
-
withCustomMethods
-
withCustomStatusCodes
-
withCustomMediaTypes
-
getMaxUriLength
public abstract int getMaxUriLength() -
getMaxMethodLength
public abstract int getMaxMethodLength() -
getMaxResponseReasonLength
public abstract int getMaxResponseReasonLength() -
getMaxHeaderNameLength
public abstract int getMaxHeaderNameLength() -
getMaxHeaderValueLength
public abstract int getMaxHeaderValueLength() -
getMaxHeaderCount
public abstract int getMaxHeaderCount() -
getMaxContentLength
public abstract long getMaxContentLength() -
getMaxToStrictBytes
public abstract long getMaxToStrictBytes() -
getMaxChunkExtLength
public abstract int getMaxChunkExtLength() -
getMaxChunkSize
public abstract int getMaxChunkSize() -
getMaxCommentParsingDepth
public abstract int getMaxCommentParsingDepth() -
getUriParsingMode
-
getCookieParsingMode
-
getIllegalHeaderWarnings
public abstract boolean getIllegalHeaderWarnings() -
getIgnoreIllegalHeaderFor
-
getErrorLoggingVerbosity
-
getIllegalResponseHeaderNameProcessingMode
public abstract ParserSettings.IllegalResponseHeaderNameProcessingMode getIllegalResponseHeaderNameProcessingMode() -
getIllegalResponseHeaderValueProcessingMode
public abstract ParserSettings.IllegalResponseHeaderValueProcessingMode getIllegalResponseHeaderValueProcessingMode() -
getConflictingContentTypeHeaderProcessingMode
public abstract ParserSettings.ConflictingContentTypeHeaderProcessingMode getConflictingContentTypeHeaderProcessingMode() -
getHeaderValueCacheLimits
-
getIncludeTlsSessionInfoHeader
public abstract boolean getIncludeTlsSessionInfoHeader() -
getIncludeSslSessionAttribute
public abstract boolean getIncludeSslSessionAttribute() -
headerValueCacheLimits
-
getCustomMethods
-
getCustomStatusCodes
-
getCustomMediaTypes
-
getModeledHeaderParsing
public abstract boolean getModeledHeaderParsing() -
withMaxUriLength
-
withMaxMethodLength
-
withMaxResponseReasonLength
-
withMaxHeaderNameLength
-
withMaxHeaderValueLength
-
withMaxHeaderCount
-
withMaxContentLength
-
withMaxToStrictBytes
-
withMaxChunkExtLength
-
withMaxChunkSize
-
withMaxCommentParsingDepth
-
withUriParsingMode
-
withCookieParsingMode
-
withIllegalHeaderWarnings
-
withErrorLoggingVerbosity
-
withHeaderValueCacheLimits
-
withIncludeTlsSessionInfoHeader
-
withIncludeSslSessionAttribute
-
withModeledHeaderParsing
-
withIgnoreIllegalHeaderFor
-
withCustomMethods
-
withCustomStatusCodes
-
withCustomMediaTypes
-