HttpServerFilter configuration.
| Modifier and Type | Field and Description |
|---|---|
| private BackendConfiguration | backendConfiguration
The auxiliary configuration, which might be used, when Grizzly HttpServer is running behind some HTTP gateway like reverse proxy or load balancer. |
| private ErrorPageGenerator | defaultErrorPageGenerator
The default error page generator |
| private Charset | defaultQueryEncoding
Default query string encoding (query part of request URI). |
| private String | |
| private String | |
| private boolean | isGracefulShutdownSupported
true, if |
| public static final int | |
| private int | |
| private int | |
| private long | |
| private int | |
| private boolean | |
| private boolean | |
| private SessionManager | sessionManager
The HTTP server |
| private int | |
| private boolean | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public BackendConfiguration | getBackendConfiguration()
Returns: the auxiliary configuration, which might be used, when Grizzly HttpServer is running behind HTTP gateway like reverse proxy or load balancer. |
| public ErrorPageGenerator | |
| public Charset | getDefaultQueryEncoding()
Returns: the default character encoding used to decode request URI's query part. |
| public String | |
| public String | |
| public int | |
| public int | |
| public long | |
| public int | Returns: the maximum number of parameters, or -1 if there is no imposed limit.Returns the maximum number of parameters allowed per request. |
| public String | Returns: the HTTP request schemeGet the HTTP request scheme, which if non-null overrides default one picked up by framework during runtime. |
| public SessionManager | |
| public int | Returns: an integer specifying the number of seconds this session remains open between client requestsReturns the maximum time interval, in seconds, that the HTTP server will keep this session open between client accesses. |
| public boolean | isGracefulShutdownSupported()
Returns: true, if |
| public boolean | isPassTraceRequest()
Returns: true if the TRACE request will be passed to the registered |
| public boolean | |
| public boolean | Returns: true if resources will be sent using
java..
Returns |
| public boolean | isTraceEnabled()
Returns: true if a proper response to HTTP TRACE is to be generated, or false if a 405 is to be returned instead. |
| public void | setBackendConfiguration(final BackendConfiguration backendConfiguration)
Sets the auxiliary configuration, which might be used, when Grizzly HttpServer is running behind HTTP gateway like reverse proxy or load balancer. |
| public void | setDefaultErrorPageGenerator(final ErrorPageGenerator defaultErrorPageGenerator)
Sets the default |
| public void | setDefaultQueryEncoding(final Charset defaultQueryEncoding)
Sets the default character encoding used to decode request URI's query part. |
| public void | setGracefulShutdownSupported(final boolean isGracefulShutdownSupported)
Enables or disables graceful shutdown support. |
| public void | setHttpServerName(String
server name httpServerName)Sets the server name used for HTTP response headers and default generated error pages. |
| public void | setHttpServerVersion(String
server version httpServerVersion)Sets the version of the server info sent in HTTP response headers and the default generated error pages. |
| public void | setMaxBufferedPostSize(final int maxBufferedPostSize)
Sets the maximum POST body size, which can buffered in memory. |
| public void | setMaxFormPostSize(final int maxFormPostSize)
Sets the maximum size of the POST body generated by an HTML form. |
| public void | |
| public void | setMaxRequestParameters(int
the maximum number of parameters. maxRequestParameters)Sets the maximum number of parameters allowed for a request. |
| public void | setPassTraceRequest(boolean
boolean to configure if trace requests will be handled by Grizzly or by a configured
passTraceRequest)HttpHandler.If passTraceRequest is true, the TRACE request will be passed to the registered
|
| public void | setReuseSessionID(boolean isReuseSessionID)
Deprecated
since 2.3.17
Sets the "reuse session IDs when creating sessions" |
| public void | |
| public void | setSendFileEnabled(boolean
true to enable
java. support.Configure whether or sendfile support will enabled which allows sending |
| public void | |
| public void | setSessionTimeoutSeconds(int
An integer specifying the number of seconds sessionTimeoutSeconds)Specifies the time, in seconds, between client requests before the HTTP server will invalidate this session. |
| public void | setTraceEnabled(final boolean
boolean to configure how grizzly handles TRACE requests enabled)If enabled is true the TRACE method will be respected and a proper response will be generated. |
| backendConfiguration | back to summary |
|---|---|
| private BackendConfiguration backendConfiguration The auxiliary configuration, which might be used, when Grizzly HttpServer is running behind some HTTP gateway like reverse proxy or load balancer. | |
| defaultErrorPageGenerator | back to summary |
|---|---|
| private ErrorPageGenerator defaultErrorPageGenerator The default error page generator | |
| defaultQueryEncoding | back to summary |
|---|---|
| private Charset defaultQueryEncoding Default query string encoding (query part of request URI). | |
| httpServerName | back to summary |
|---|---|
| private String httpServerName | |
| httpServerVersion | back to summary |
|---|---|
| private String httpServerVersion | |
| isGracefulShutdownSupported | back to summary |
|---|---|
| private boolean isGracefulShutdownSupported true, if | |
| MAX_REQUEST_PARAMETERS | back to summary |
|---|---|
| public static final int MAX_REQUEST_PARAMETERS | |
| maxBufferedPostSize | back to summary |
|---|---|
| private int maxBufferedPostSize | |
| maxFormPostSize | back to summary |
|---|---|
| private int maxFormPostSize | |
| maxPostSize | back to summary |
|---|---|
| private long maxPostSize | |
| maxRequestParameters | back to summary |
|---|---|
| private int maxRequestParameters | |
| passTraceRequest | back to summary |
|---|---|
| private boolean passTraceRequest | |
| sendFileEnabled | back to summary |
|---|---|
| private boolean sendFileEnabled | |
| sessionManager | back to summary |
|---|---|
| private SessionManager sessionManager The HTTP server | |
| sessionTimeoutSeconds | back to summary |
|---|---|
| private int sessionTimeoutSeconds | |
| traceEnabled | back to summary |
|---|---|
| private boolean traceEnabled | |
| USE_SEND_FILE | back to summary |
|---|---|
| public static final String USE_SEND_FILE | |
| ServerFilterConfiguration | back to summary |
|---|---|
| public ServerFilterConfiguration() | |
| ServerFilterConfiguration | back to summary |
|---|---|
| public ServerFilterConfiguration(final String serverName, final String serverVersion) | |
| ServerFilterConfiguration | back to summary |
|---|---|
| public ServerFilterConfiguration(final ServerFilterConfiguration configuration) | |
| configureSendFileSupport | back to summary |
|---|---|
| private void configureSendFileSupport() | |
| getBackendConfiguration | back to summary |
|---|---|
public BackendConfiguration getBackendConfiguration()
| |
| getDefaultErrorPageGenerator | back to summary |
|---|---|
public ErrorPageGenerator getDefaultErrorPageGenerator()
| |
| getDefaultQueryEncoding | back to summary |
|---|---|
public Charset getDefaultQueryEncoding()
| |
| getHttpServerName | back to summary |
|---|---|
public String getHttpServerName()
| |
| getHttpServerVersion | back to summary |
|---|---|
public String getHttpServerVersion()
| |
| getMaxBufferedPostSize | back to summary |
|---|---|
| public int getMaxBufferedPostSize() Gets the maximum POST body size, which can buffered in memory.
| |
| getMaxFormPostSize | back to summary |
|---|---|
| public int getMaxFormPostSize() Gets the maximum size of the POST body generated by an HTML form.
| |
| getMaxPostSize | back to summary |
|---|---|
| public long getMaxPostSize() Gets the maximum size of the POST body.
| |
| getMaxRequestParameters | back to summary |
|---|---|
| public int getMaxRequestParameters() Returns the maximum number of parameters allowed per request. If the value is less than zero, then there will be no limit on parameters. By default, the limit imposed is 10000.
| |
| getScheme | back to summary |
|---|---|
| public String getScheme() Get the HTTP request scheme, which if non-null overrides default one picked up by framework during runtime.
| |
| getSessionManager | back to summary |
|---|---|
public SessionManager getSessionManager()
| |
| getSessionTimeoutSeconds | back to summary |
|---|---|
| public int getSessionTimeoutSeconds() Returns the maximum time interval, in seconds, that the HTTP server will keep this session open between client accesses. After this interval, the HTTP server will invalidate the session. A return value of zero or less indicates that the session will never timeout.
| |
| isGracefulShutdownSupported | back to summary |
|---|---|
public boolean isGracefulShutdownSupported()
| |
| isPassTraceRequest | back to summary |
|---|---|
public boolean isPassTraceRequest()
| |
| isReuseSessionID | back to summary |
|---|---|
| public boolean isReuseSessionID()
Deprecated since 2.3.17 Returns the "reuse session IDs when creating sessions"
| |
| isSendFileEnabled | back to summary |
|---|---|
| public boolean isSendFileEnabled()
Returns
By default, this property will be true, except in the following cases:
This logic can be overridden by explicitly setting the property via
Finally, if the connection between endpoints is secure, send file functionality will be disabled regardless of configuration.
| |
| isTraceEnabled | back to summary |
|---|---|
public boolean isTraceEnabled()
| |
| setBackendConfiguration | back to summary |
|---|---|
| public void setBackendConfiguration(final BackendConfiguration backendConfiguration) Sets the auxiliary configuration, which might be used, when Grizzly HttpServer is running behind HTTP gateway like reverse proxy or load balancer.
| |
| setDefaultErrorPageGenerator | back to summary |
|---|---|
| public void setDefaultErrorPageGenerator(final ErrorPageGenerator defaultErrorPageGenerator) Sets the default | |
| setDefaultQueryEncoding | back to summary |
|---|---|
| public void setDefaultQueryEncoding(final Charset defaultQueryEncoding) Sets the default character encoding used to decode request URI's query part. | |
| setGracefulShutdownSupported | back to summary |
|---|---|
| public void setGracefulShutdownSupported(final boolean isGracefulShutdownSupported) Enables or disables graceful shutdown support. | |
| setHttpServerName | back to summary |
|---|---|
| public void setHttpServerName(String httpServerName) Sets the server name used for HTTP response headers and default generated error pages. If not value is explicitly
set, this value defaults to
| |
| setHttpServerVersion | back to summary |
|---|---|
| public void setHttpServerVersion(String httpServerVersion) Sets the version of the server info sent in HTTP response headers and the default generated error pages. If not value is explicitly set, this value defaults to the current version of the Grizzly runtime.
| |
| setMaxBufferedPostSize | back to summary |
|---|---|
| public void setMaxBufferedPostSize(final int maxBufferedPostSize) Sets the maximum POST body size, which can buffered in memory.
| |
| setMaxFormPostSize | back to summary |
|---|---|
| public void setMaxFormPostSize(final int maxFormPostSize) Sets the maximum size of the POST body generated by an HTML form.
| |
| setMaxPostSize | back to summary |
|---|---|
| public void setMaxPostSize(final long maxPostSize) Sets the maximum size of the POST body.
| |
| setMaxRequestParameters | back to summary |
|---|---|
| public void setMaxRequestParameters(int maxRequestParameters) Sets the maximum number of parameters allowed for a request.
| |
| setPassTraceRequest | back to summary |
|---|---|
| public void setPassTraceRequest(boolean passTraceRequest) If passTraceRequest is true, the TRACE request will be passed to the registered
| |
| setReuseSessionID | back to summary |
|---|---|
| public void setReuseSessionID(boolean isReuseSessionID)
Deprecated since 2.3.17 Sets the "reuse session IDs when creating sessions"
| |
| setScheme | back to summary |
|---|---|
| public void setScheme(final String scheme) Set the HTTP request scheme, which if non-null overrides default one picked up by framework during runtime.
| |
| setSendFileEnabled | back to summary |
|---|---|
| public void setSendFileEnabled(boolean sendFileEnabled) Configure whether or sendfile support will enabled which allows sending
| |
| setSessionManager | back to summary |
|---|---|
| public void setSessionManager(SessionManager sessionManager) Sets the HTTP server
| |
| setSessionTimeoutSeconds | back to summary |
|---|---|
| public void setSessionTimeoutSeconds(int sessionTimeoutSeconds) Specifies the time, in seconds, between client requests before the HTTP server will invalidate this session. An interval value of zero or less indicates that the session should never timeout.
| |
| setTraceEnabled | back to summary |
|---|---|
| public void setTraceEnabled(final boolean enabled) If enabled is true the TRACE method will be respected and a proper response will be
generated. Otherwise, the method will be considered as not allowed and an HTTP 405 will be returned.
This method only comes into effect when
| |