Class HttpConfig.BuilderBase.HttpConfigImpl

java.lang.Object
io.helidon.http.HttpConfig.BuilderBase.HttpConfigImpl
All Implemented Interfaces:
Prototype.Api, HttpConfig
Direct Known Subclasses:
Http1ClientProtocolConfig.BuilderBase.Http1ClientProtocolConfigImpl, Http1Config.BuilderBase.Http1ConfigImpl, Http2ClientProtocolConfig.BuilderBase.Http2ClientProtocolConfigImpl, Http2Config.BuilderBase.Http2ConfigImpl
Enclosing class:
HttpConfig.BuilderBase<BUILDER extends HttpConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends HttpConfig>

protected static class HttpConfig.BuilderBase.HttpConfigImpl extends Object implements HttpConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • HttpConfigImpl

      protected HttpConfigImpl(HttpConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • maxBufferedEntitySize

      public Size maxBufferedEntitySize()
      Description copied from interface: HttpConfig
      Configure the maximum size allowed for an entity that can be explicitly buffered by the application by calling io.helidon.http.media.ReadableEntity.buffer().
      Specified by:
      maxBufferedEntitySize in interface HttpConfig
      Returns:
      maximum size for a buffered entity
    • validateRequestHeaders

      public boolean validateRequestHeaders()
      Description copied from interface: HttpConfig
      Whether to validate request headers. If set to false, any request header value is accepted, otherwise request headers and known headers are validated by format (content length is always validated as it is part of protocol processing (other headers may be validated if features use them)).

      Defaults to true.

      Specified by:
      validateRequestHeaders in interface HttpConfig
      Returns:
      whether to validate request headers
    • validateResponseHeaders

      public boolean validateResponseHeaders()
      Description copied from interface: HttpConfig
      Whether to validate response headers. If set to false, any response header value is accepted, otherwise response headers and known headers are validated by format.

      Defaults to true. Disabling this setting can allow invalid response header values to be written.

      Specified by:
      validateResponseHeaders in interface HttpConfig
      Returns:
      whether to validate response headers
    • log

      public HttpLogConfig log()
      Description copied from interface: HttpConfig
      HTTP Log configuration.
      Specified by:
      log in interface HttpConfig
      Returns:
      log configuration
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object