public abstract class ParserSettings extends BodyPartParser.Settings
Modifier and Type | Class and Description |
---|---|
static interface |
ParserSettings.ConflictingContentTypeHeaderProcessingMode |
static interface |
ParserSettings.CookieParsingMode |
static interface |
ParserSettings.ErrorLoggingVerbosity |
static interface |
ParserSettings.IllegalResponseHeaderNameProcessingMode |
static interface |
ParserSettings.IllegalResponseHeaderValueProcessingMode |
Constructor and Description |
---|
ParserSettings() |
defaultHeaderValueCacheLimit, illegalHeaderWarnings, maxHeaderCount
customMediaTypes, errorLoggingVerbosity, headerValueCacheLimit, ignoreIllegalHeaderFor, illegalResponseHeaderNameProcessingMode, illegalResponseHeaderValueProcessingMode, maxHeaderNameLength, maxHeaderValueLength, modeledHeaderParsing
cookieParsingMode, maxCommentParsingDepth, uriParsingMode
public static ParserSettings create(com.typesafe.config.Config config)
config
- (undocumented)public static ParserSettings create(java.lang.String configOverrides)
configOverrides
- (undocumented)public static ParserSettings create(org.apache.pekko.actor.ActorSystem system)
system
- (undocumented)public static ParserSettings forServer(org.apache.pekko.actor.ClassicActorSystemProvider system)
public static ParserSettings forClient(org.apache.pekko.actor.ClassicActorSystemProvider system)
public ParserSettings withCustomMethods(HttpMethod... methods)
public ParserSettings withCustomStatusCodes(StatusCode... codes)
public ParserSettings withCustomMediaTypes(MediaType... mediaTypes)
public abstract int getMaxUriLength()
public abstract int getMaxMethodLength()
public abstract int getMaxResponseReasonLength()
public abstract int getMaxHeaderNameLength()
public abstract int getMaxHeaderValueLength()
public abstract int getMaxHeaderCount()
public abstract long getMaxContentLength()
public abstract long getMaxToStrictBytes()
public abstract int getMaxChunkExtLength()
public abstract int getMaxChunkSize()
public abstract int getMaxCommentParsingDepth()
public abstract Uri.ParsingMode getUriParsingMode()
public abstract ParserSettings.CookieParsingMode getCookieParsingMode()
public abstract boolean getIllegalHeaderWarnings()
public abstract scala.collection.immutable.Set<java.lang.String> getIgnoreIllegalHeaderFor()
public abstract ParserSettings.ErrorLoggingVerbosity getErrorLoggingVerbosity()
public abstract ParserSettings.IllegalResponseHeaderNameProcessingMode getIllegalResponseHeaderNameProcessingMode()
public abstract ParserSettings.IllegalResponseHeaderValueProcessingMode getIllegalResponseHeaderValueProcessingMode()
public abstract ParserSettings.ConflictingContentTypeHeaderProcessingMode getConflictingContentTypeHeaderProcessingMode()
public abstract java.util.Map<java.lang.String,java.lang.Object> getHeaderValueCacheLimits()
public abstract boolean getIncludeTlsSessionInfoHeader()
public abstract boolean getIncludeSslSessionAttribute()
public abstract scala.collection.immutable.Map<java.lang.String,java.lang.Object> headerValueCacheLimits()
public abstract java.util.function.Function<java.lang.String,java.util.Optional<HttpMethod>> getCustomMethods()
public abstract java.util.function.Function<java.lang.Object,java.util.Optional<StatusCode>> getCustomStatusCodes()
public abstract org.apache.pekko.japi.function.Function2<java.lang.String,java.lang.String,java.util.Optional<MediaType>> getCustomMediaTypes()
public abstract boolean getModeledHeaderParsing()
public ParserSettings withMaxUriLength(int newValue)
public ParserSettings withMaxMethodLength(int newValue)
public ParserSettings withMaxResponseReasonLength(int newValue)
public ParserSettings withMaxHeaderNameLength(int newValue)
public ParserSettings withMaxHeaderValueLength(int newValue)
public ParserSettings withMaxHeaderCount(int newValue)
public ParserSettings withMaxContentLength(long newValue)
public ParserSettings withMaxToStrictBytes(long newValue)
public ParserSettings withMaxChunkExtLength(int newValue)
public ParserSettings withMaxChunkSize(int newValue)
public ParserSettings withMaxCommentParsingDepth(int newValue)
public ParserSettings withUriParsingMode(Uri.ParsingMode newValue)
public ParserSettings withCookieParsingMode(ParserSettings.CookieParsingMode newValue)
public ParserSettings withIllegalHeaderWarnings(boolean newValue)
public ParserSettings withErrorLoggingVerbosity(ParserSettings.ErrorLoggingVerbosity newValue)
public ParserSettings withHeaderValueCacheLimits(java.util.Map<java.lang.String,java.lang.Object> newValue)
public ParserSettings withIncludeTlsSessionInfoHeader(boolean newValue)
public ParserSettings withIncludeSslSessionAttribute(boolean newValue)
public ParserSettings withModeledHeaderParsing(boolean newValue)
public ParserSettings withIgnoreIllegalHeaderFor(scala.collection.immutable.List<java.lang.String> newValue)
public ParserSettings withCustomMethods(scala.collection.immutable.Seq<HttpMethod> methods)
public ParserSettings withCustomStatusCodes(scala.collection.immutable.Seq<StatusCode> codes)
public ParserSettings withCustomMediaTypes(scala.collection.immutable.Seq<MediaType> mediaTypes)