Class BackendConfiguration
java.lang.Object
org.glassfish.grizzly.http.server.BackendConfiguration
This configuration might be useful, when Grizzly HttpServer is running behind an HTTP gateway like reverse proxy,
load balancer etc...
In this situation the HTTP gateway may preprocess initial HTTP request headers, examine them and forward modified
HTTP request to a Grizzly HttpServer. For example HTTP request received via HTTPS might be forwarded using plain HTTP
(for performance reason), so the protocol and client authentication might be lost when the HTTP request reaches
Grizzly HttpServer. Using this configuration object, it's possible to instruct Grizzly HttpServer to use custom HTTP
request headers to get information about original protocol used by client, user authentication information etc...
- Since:
- 2.3.18
- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the HTTP request header name, whose value (if non-null) would be used to set the name of the remote user that has been authenticated for HTTP Request.Returns the HTTP request scheme, which if non-null overrides default one picked up by framework during request processing.Returns the HTTP request header name, whose value (if non-null) would be used to override default protocol scheme picked up by framework during request processing.voidsetRemoteUserMapping(String remoteUserMapping) Sets the HTTP request header name, whose value (if non-null) would be used to set the name of the remote user that has been authenticated for HTTP Request.voidSets the HTTP request scheme, which if non-null overrides default one picked up by framework during request processing.voidsetSchemeMapping(String schemeMapping) Sets the HTTP request header name, whose value (if non-null) would be used to override default protocol scheme picked up by framework during request processing.
-
Constructor Details
-
BackendConfiguration
public BackendConfiguration()
-
-
Method Details
-
getScheme
Returns the HTTP request scheme, which if non-null overrides default one picked up by framework during request processing. -
setScheme
Sets the HTTP request scheme, which if non-null overrides default one picked up by framework during request processing. Pls. note this method resetsschemeMappingproperty if any was set before. -
getSchemeMapping
Returns the HTTP request header name, whose value (if non-null) would be used to override default protocol scheme picked up by framework during request processing. -
setSchemeMapping
Sets the HTTP request header name, whose value (if non-null) would be used to override default protocol scheme picked up by framework during request processing. Pls. note this method resetsschemeproperty if any was set before. -
getRemoteUserMapping
Returns the HTTP request header name, whose value (if non-null) would be used to set the name of the remote user that has been authenticated for HTTP Request.- See Also:
-
setRemoteUserMapping
Sets the HTTP request header name, whose value (if non-null) would be used to set the name of the remote user that has been authenticated for HTTP Request.- See Also:
-