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
ProxyConnectionFactory
and sets them on the request withServletRequest.setAttribute(String, Object)
.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOCAL_ADDRESS_ATTRIBUTE_NAME
The local address attribute name.static java.lang.String
LOCAL_PORT_ATTRIBUTE_NAME
The local port attribute name.static java.lang.String
REMOTE_ADDRESS_ATTRIBUTE_NAME
The remote address attribute name.static java.lang.String
REMOTE_PORT_ATTRIBUTE_NAME
The remote port attribute name.
-
Constructor Summary
Constructors Constructor Description ProxyCustomizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
customize(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:
customize
in interfaceHttpConfiguration.Customizer
-
-