Class ParserSettings

Direct Known Subclasses:
ParserSettings

public abstract class ParserSettings extends BodyPartParser.Settings
Public API but not intended for subclassing
  • Constructor Details

    • ParserSettings

      public ParserSettings()
  • Method Details

    • 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(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<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 Map<String,Object> getHeaderValueCacheLimits()
    • getIncludeTlsSessionInfoHeader

      public abstract boolean getIncludeTlsSessionInfoHeader()
    • getIncludeSslSessionAttribute

      public abstract boolean getIncludeSslSessionAttribute()
    • headerValueCacheLimits

      public abstract scala.collection.immutable.Map<String,Object> headerValueCacheLimits()
    • getCustomMethods

      public abstract Function<String,Optional<HttpMethod>> getCustomMethods()
    • getCustomStatusCodes

      public abstract Function<Object,Optional<StatusCode>> getCustomStatusCodes()
    • getCustomMediaTypes

      public abstract akka.japi.function.Function2<String,String,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(Map<String,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<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)