Top Description Fields Constructors Methods
org.glassfish.grizzly.http.server

public Class BackendConfiguration

extends Object
Class Inheritance

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...
Author
Alexey Stashok
Since
2.3.18

Field Summary

Modifier and TypeField and Description
private String
private String
scheme

The HTTP request scheme, which if non-null overrides default one picked up by framework during runtime.

private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
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.

public String
getScheme()

Returns the HTTP request scheme, which if non-null overrides default one picked up by framework during request processing.

public String
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.

public void
setRemoteUserMapping(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.

public void
setScheme(String scheme)

Sets the HTTP request scheme, which if non-null overrides default one picked up by framework during request processing.

public void
setSchemeMapping(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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

remoteUserMappingback to summary
private String remoteUserMapping
schemeback to summary
private String scheme

The HTTP request scheme, which if non-null overrides default one picked up by framework during runtime.

schemeMappingback to summary
private String schemeMapping

Constructor Detail

BackendConfigurationback to summary
public BackendConfiguration()

Method Detail

getRemoteUserMappingback to summary
public String 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
Request#getRemoteUser()
getSchemeback to summary
public String getScheme()

Returns the HTTP request scheme, which if non-null overrides default one picked up by framework during request processing.

getSchemeMappingback to summary
public String 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.

setRemoteUserMappingback to summary
public void setRemoteUserMapping(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.

See Also
Request#getRemoteUser()
setSchemeback to summary
public void setScheme(String scheme)

Sets the HTTP request scheme, which if non-null overrides default one picked up by framework during request processing. Pls. note this method resets schemeMapping property if any was set before.

setSchemeMappingback to summary
public void setSchemeMapping(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. Pls. note this method resets scheme property if any was set before.