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>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.http.HttpConfig
HttpConfig.Builder, HttpConfig.BuilderBase<BUILDER extends HttpConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends HttpConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpConfigImpl(HttpConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()log()HTTP Log configuration.Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().toString()booleanWhether to validate request headers.booleanWhether to validate response headers.
-
Constructor Details
-
HttpConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
maxBufferedEntitySize
Description copied from interface:HttpConfigConfigure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().- Specified by:
maxBufferedEntitySizein interfaceHttpConfig- Returns:
- maximum size for a buffered entity
-
validateRequestHeaders
public boolean validateRequestHeaders()Description copied from interface:HttpConfigWhether 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:
validateRequestHeadersin interfaceHttpConfig- Returns:
- whether to validate request headers
-
validateResponseHeaders
public boolean validateResponseHeaders()Description copied from interface:HttpConfigWhether 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:
validateResponseHeadersin interfaceHttpConfig- Returns:
- whether to validate response headers
-
log
Description copied from interface:HttpConfigHTTP Log configuration.- Specified by:
login interfaceHttpConfig- Returns:
- log configuration
-
toString
-
equals
-
hashCode
public int hashCode()
-