This class is a holder of HTTP configuration. Typically an HTTPConfiguration
instance is instantiated and passed to a ConnectionFactory that can
create HTTP channels (e.g. HTTP, AJP or FCGI).
The configuration held by this class is not for the wire protocol, but for the interpretation and handling of HTTP requests that could be transported by a variety of protocols.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface | HttpConfiguration.Customizer
An interface that allows a request object to be customized for a particular HTTP connector configuration. |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private boolean | |
| private final Index. | |
| private boolean | |
| private int | |
| private HttpCompliance | |
| private long | |
| private SocketAddress | |
| private int | |
| private int | |
| private long | |
| private long | |
| private MultiPartCompliance | |
| private boolean | |
| private int | |
| private int | |
| private boolean | |
| private boolean | |
| private CookieCompliance | |
| private int | |
| private CookieCompliance | |
| private int | |
| private int | |
| private String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private HostPort | |
| private UriCompliance | |
| private boolean | |
| private boolean | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HttpConfiguration(HttpConfiguration
The configuration to copy. config)Creates a configuration from another. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addComplianceViolationListener(ComplianceViolation.
the listener to add listenerAdd a |
| public void | addCustomizer(HttpConfiguration.
A request customizer customizerAdds a |
| public void | addFormEncodedMethod(String
the HTTP method of requests that can be decoded as
method)x-www-form-urlencoded content.Adds a form encoded HTTP Method |
| public String | |
| public void | dump(Appendable
The appendable to dump to out, String The indent to apply after any new lines. indent)Implements org. |
| public List | Returns: the list of configured listenersGet the list of configured |
| public <T> T | |
| public List | |
| public Set | Returns: the set of HTTP methods of requests that can be decoded asx-www-form-urlencoded content.
|
| public int | |
| public HttpCompliance | |
| public long | Returns: the max idle time in ms or if == 0 implies an infinite timeout, <0 implies no HTTP channel timeout and the connection timeout is used instead.The max idle time is applied to an HTTP request for IO operations and delayed dispatch. |
| public SocketAddress | Returns: Returns the connection local address override or null.Get the SocketAddress override to be reported as the local address of all connections |
| public int | Returns: The maximum error dispatches for a request to prevent looping on an error
|
| public int | Returns: the maximum amount of reads for unconsumed content or -1 for unlimited.Gets the maximum amount of |
| public long | Returns: The minimum request data rate in bytes per second; or <=0 for no limit
|
| public long | Returns: The minimum response data rate in bytes per second; or <=0 for no limit
|
| public MultiPartCompliance | |
| public int | |
| public int | |
| public CookieCompliance | |
| public int | |
| public CookieCompliance | Returns: The CookieCompliance used for generating responseSet-Cookie headers
|
| public int | |
| public int | |
| public String | |
| public boolean | |
| public boolean | |
| public boolean | |
| public HostPort | Returns: Returns the connection server authority (name/port) or nullGet the Server authority override to be used if no authority is provided by a request. |
| public UriCompliance | |
| public boolean | |
| public boolean | Returns: true if requests with this method can be decoded asx-www-form-urlencoded content.the HTTP method method)Tests whether the HTTP method supports |
| public boolean | |
| public boolean | Returns: whether remote errors, when detected, are notified to async applications
|
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if this list contained the specified elementthe listener to remove listenerRemove a |
| public boolean | |
| public void | setCustomizers(List<HttpConfiguration.
the list of customizers customizersSets the |
| public void | setDelayDispatchUntilContent(boolean
if true, delays the application dispatch until content is available (defaults to true) delay)Set if true, delays the application dispatch until content is available (defaults to true). |
| public void | setFormEncodedMethods(String...
the HTTP methods of requests that can be decoded as
methods)x-www-form-urlencoded content.Sets the form encoded HTTP methods. |
| public void | |
| public void | setHeaderCacheSize(int
The size of the header field cache, in terms of unique characters branches
in the lookup headerCacheSize)Index. and associated data structures.
|
| public void | |
| public void | setIdleTimeout(long
the max idle time in ms or if == 0 implies an infinite timeout, <0
implies no HTTP channel timeout and the connection timeout is used instead. timeoutMs)The max idle time is applied to an HTTP request for IO operations and delayed dispatch. |
| public void | setLocalAddress(SocketAddress
the address to use for host/addr/port, or null to reset to default behavior localAddress)Specify the connection local address used within application API layer when identifying the local host name/port of a connected endpoint. |
| public void | setMaxErrorDispatches(int
The maximum error dispatches for a request to prevent looping on an error max)
|
| public void | setMaxUnconsumedRequestContentReads(int
the maximum amount of reads for unconsumed content or -1 for unlimited. maxUnconsumedRequestContentReads)Sets the maximum amount of |
| public void | setMinRequestDataRate(long
The minimum request data rate in bytes per second; or <=0 for no limit bytesPerSecond)
|
| public void | setMinResponseDataRate(long
The minimum response data rate in bytes per second; or <=0 for no limit bytesPerSecond)Sets an minimum response content data rate. |
| public void | setMultiPartCompliance(MultiPartCompliance
the multiPartCompliance)MultiPartCompliance used for validating multipart form syntax.
|
| public void | setNotifyRemoteAsyncErrors(boolean
whether remote errors, when detected, are notified to async applications notifyRemoteAsyncErrors)Set whether remote errors, when detected, are notified to async applications. |
| public void | setOutputAggregationSize(int
the max write size that is aggregated outputAggregationSize)Set the max size of the response content write that is copied into the aggregate buffer. |
| public void | setOutputBufferSize(int
buffer size in bytes. outputBufferSize)Set the size of the buffer into which response content is aggregated before being sent to the client. |
| public void | |
| public void | |
| public void | setRequestCookieCompliance(CookieCompliance
The CookieCompliance to use for parsing request cookieCompliance)Cookie headers.
|
| public void | setRequestHeaderSize(int
the maximum size in bytes of the request header requestHeaderSize)Larger headers will allow for more and/or larger cookies plus larger form content encoded in a URL. |
| public void | setResponseCookieCompliance(CookieCompliance
The CookieCompliance to use for generating response cookieCompliance)Set-Cookie headers
|
| public void | setResponseHeaderSize(int
the maximum size in bytes of the response header responseHeaderSize)Larger headers will allow for more and/or larger cookies and longer HTTP headers (eg for redirection). |
| public void | setSecurePort(int
the secure port to redirect to. securePort)Sets the TCP/IP port used for CONFIDENTIAL and INTEGRAL redirections. |
| public void | setSecureScheme(String
A scheme string like "https" secureScheme)Set the URI scheme used for CONFIDENTIAL and INTEGRAL redirections. |
| public void | setSendDateHeader(boolean
true if the sendDateHeader)Date header should be sent in responsesIndicates if the |
| public void | |
| public void | |
| public void | setServerAuthority(HostPort
the authority host (and optional port), or null to reset to default behavior authority)Specify the connection server authority (name/port) used within application API layer when identifying the server host name/port of a connected endpoint. |
| public void | |
| public void | setUseInputDirectByteBuffers(boolean
whether to use direct ByteBuffers for reading useInputDirectByteBuffers)Set whether to use direct ByteBuffers for reading. |
| public void | setUseOutputDirectByteBuffers(boolean
whether to use direct ByteBuffers for writing useOutputDirectByteBuffers)Set whether to use direct ByteBuffers for writing. |
| public String | |
| public void |