Package org.eclipse.jetty.server
Class ProxyCustomizer
- java.lang.Object
-
- org.eclipse.jetty.server.ProxyCustomizer
-
- All Implemented Interfaces:
HttpConfiguration.Customizer
public class ProxyCustomizer extends java.lang.Object implements HttpConfiguration.Customizer
Customizer that extracts the real local and remote address:port pairs from a
ProxyConnectionFactoryand sets them on the request withServletRequest.setAttribute(String, Object).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOCAL_ADDRESS_ATTRIBUTE_NAMEThe local address attribute name.static java.lang.StringLOCAL_PORT_ATTRIBUTE_NAMEThe local port attribute name.static java.lang.StringREMOTE_ADDRESS_ATTRIBUTE_NAMEThe remote address attribute name.static java.lang.StringREMOTE_PORT_ATTRIBUTE_NAMEThe remote port attribute name.
-
Constructor Summary
Constructors Constructor Description ProxyCustomizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(Connector connector, HttpConfiguration channelConfig, Request request)
-
-
-
Field Detail
-
REMOTE_ADDRESS_ATTRIBUTE_NAME
public static final java.lang.String REMOTE_ADDRESS_ATTRIBUTE_NAME
The remote address attribute name.- See Also:
- Constant Field Values
-
REMOTE_PORT_ATTRIBUTE_NAME
public static final java.lang.String REMOTE_PORT_ATTRIBUTE_NAME
The remote port attribute name.- See Also:
- Constant Field Values
-
LOCAL_ADDRESS_ATTRIBUTE_NAME
public static final java.lang.String LOCAL_ADDRESS_ATTRIBUTE_NAME
The local address attribute name.- See Also:
- Constant Field Values
-
LOCAL_PORT_ATTRIBUTE_NAME
public static final java.lang.String LOCAL_PORT_ATTRIBUTE_NAME
The local port attribute name.- See Also:
- Constant Field Values
-
-
Method Detail
-
customize
public void customize(Connector connector, HttpConfiguration channelConfig, Request request)
- Specified by:
customizein interfaceHttpConfiguration.Customizer
-
-