Package akka.http.javadsl.settings
Class ParserSettings
- java.lang.Object
-
- akka.http.impl.model.parser.HeaderParser.Settings
-
- akka.http.impl.engine.parsing.HttpHeaderParser.Settings
-
- akka.http.impl.engine.parsing.BodyPartParser.Settings
-
- akka.http.javadsl.settings.ParserSettings
-
- Direct Known Subclasses:
ParserSettings
public abstract class ParserSettings extends BodyPartParser.Settings
Public API but not intended for subclassing
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ParserSettings.ConflictingContentTypeHeaderProcessingMode
static interface
ParserSettings.CookieParsingMode
static interface
ParserSettings.ErrorLoggingVerbosity
static interface
ParserSettings.IllegalResponseHeaderNameProcessingMode
static interface
ParserSettings.IllegalResponseHeaderValueProcessingMode
-
Constructor Summary
Constructors Constructor Description ParserSettings()
-
Method Summary
-
Methods inherited from class akka.http.impl.engine.parsing.BodyPartParser.Settings
defaultHeaderValueCacheLimit, illegalHeaderWarnings, maxHeaderCount
-
Methods inherited from class akka.http.impl.engine.parsing.HttpHeaderParser.Settings
customMediaTypes, errorLoggingVerbosity, headerValueCacheLimit, ignoreIllegalHeaderFor, illegalResponseHeaderNameProcessingMode, illegalResponseHeaderValueProcessingMode, maxHeaderNameLength, maxHeaderValueLength, modeledHeaderParsing
-
Methods inherited from class akka.http.impl.model.parser.HeaderParser.Settings
cookieParsingMode, maxCommentParsingDepth, uriParsingMode
-
-
-
-
Method Detail
-
create
public static ParserSettings create(com.typesafe.config.Config config)
Deprecated.Use forServer or forClient instead.- Parameters:
config
- (undocumented)- Returns:
- (undocumented)
-
create
public static ParserSettings create(java.lang.String configOverrides)
Deprecated.Use forServer or forClient instead.- Parameters:
configOverrides
- (undocumented)- Returns:
- (undocumented)
-
create
public static ParserSettings create(akka.actor.ActorSystem system)
Deprecated.Use forServer or forClient instead.- Parameters:
system
- (undocumented)- Returns:
- (undocumented)
-
forServer
public static ParserSettings forServer(akka.actor.ClassicActorSystemProvider system)
-
forClient
public static ParserSettings forClient(akka.actor.ClassicActorSystemProvider system)
-
withCustomMethods
public ParserSettings withCustomMethods(HttpMethod... methods)
-
withCustomStatusCodes
public ParserSettings withCustomStatusCodes(StatusCode... codes)
-
withCustomMediaTypes
public ParserSettings withCustomMediaTypes(MediaType... mediaTypes)
-
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
public abstract Uri.ParsingMode getUriParsingMode()
-
getCookieParsingMode
public abstract ParserSettings.CookieParsingMode getCookieParsingMode()
-
getIllegalHeaderWarnings
public abstract boolean getIllegalHeaderWarnings()
-
getIgnoreIllegalHeaderFor
public abstract scala.collection.immutable.Set<java.lang.String> getIgnoreIllegalHeaderFor()
-
getErrorLoggingVerbosity
public abstract ParserSettings.ErrorLoggingVerbosity getErrorLoggingVerbosity()
-
getIllegalResponseHeaderNameProcessingMode
public abstract ParserSettings.IllegalResponseHeaderNameProcessingMode getIllegalResponseHeaderNameProcessingMode()
-
getIllegalResponseHeaderValueProcessingMode
public abstract ParserSettings.IllegalResponseHeaderValueProcessingMode getIllegalResponseHeaderValueProcessingMode()
-
getConflictingContentTypeHeaderProcessingMode
public abstract ParserSettings.ConflictingContentTypeHeaderProcessingMode getConflictingContentTypeHeaderProcessingMode()
-
getHeaderValueCacheLimits
public abstract java.util.Map<java.lang.String,java.lang.Object> getHeaderValueCacheLimits()
-
getIncludeTlsSessionInfoHeader
public abstract boolean getIncludeTlsSessionInfoHeader()
-
getIncludeSslSessionAttribute
public abstract boolean getIncludeSslSessionAttribute()
-
headerValueCacheLimits
public abstract scala.collection.immutable.Map<java.lang.String,java.lang.Object> headerValueCacheLimits()
-
getCustomMethods
public abstract java.util.function.Function<java.lang.String,java.util.Optional<HttpMethod>> getCustomMethods()
-
getCustomStatusCodes
public abstract java.util.function.Function<java.lang.Object,java.util.Optional<StatusCode>> getCustomStatusCodes()
-
getCustomMediaTypes
public abstract akka.japi.function.Function2<java.lang.String,java.lang.String,java.util.Optional<MediaType>> getCustomMediaTypes()
-
getModeledHeaderParsing
public abstract boolean getModeledHeaderParsing()
-
withMaxUriLength
public ParserSettings withMaxUriLength(int newValue)
-
withMaxMethodLength
public ParserSettings withMaxMethodLength(int newValue)
-
withMaxResponseReasonLength
public ParserSettings withMaxResponseReasonLength(int newValue)
-
withMaxHeaderNameLength
public ParserSettings withMaxHeaderNameLength(int newValue)
-
withMaxHeaderValueLength
public ParserSettings withMaxHeaderValueLength(int newValue)
-
withMaxHeaderCount
public ParserSettings withMaxHeaderCount(int newValue)
-
withMaxContentLength
public ParserSettings withMaxContentLength(long newValue)
-
withMaxToStrictBytes
public ParserSettings withMaxToStrictBytes(long newValue)
-
withMaxChunkExtLength
public ParserSettings withMaxChunkExtLength(int newValue)
-
withMaxChunkSize
public ParserSettings withMaxChunkSize(int newValue)
-
withMaxCommentParsingDepth
public ParserSettings withMaxCommentParsingDepth(int newValue)
-
withUriParsingMode
public ParserSettings withUriParsingMode(Uri.ParsingMode newValue)
-
withCookieParsingMode
public ParserSettings withCookieParsingMode(ParserSettings.CookieParsingMode newValue)
-
withIllegalHeaderWarnings
public ParserSettings withIllegalHeaderWarnings(boolean newValue)
-
withErrorLoggingVerbosity
public ParserSettings withErrorLoggingVerbosity(ParserSettings.ErrorLoggingVerbosity newValue)
-
withHeaderValueCacheLimits
public ParserSettings withHeaderValueCacheLimits(java.util.Map<java.lang.String,java.lang.Object> newValue)
-
withIncludeTlsSessionInfoHeader
public ParserSettings withIncludeTlsSessionInfoHeader(boolean newValue)
-
withIncludeSslSessionAttribute
public ParserSettings withIncludeSslSessionAttribute(boolean newValue)
-
withModeledHeaderParsing
public ParserSettings withModeledHeaderParsing(boolean newValue)
-
withIgnoreIllegalHeaderFor
public ParserSettings withIgnoreIllegalHeaderFor(scala.collection.immutable.List<java.lang.String> 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> mediaTypes)
-
-