Top Description Inners Fields Constructors Methods
org.eclipse.jetty.server

public Class ProxyCustomizer

extends Object
implements Customizer
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.server.HttpConfiguration.Customizer
Imports
java.net.InetSocketAddress, .SocketAddress, java.util.HashSet, .Set, org.eclipse.jetty.http.HttpFields, org.eclipse.jetty.io.EndPoint

Customizer that extracts the real local and remote address:port pairs from a ProxyConnectionFactory and sets them on the request with Request#setAttribute(String, Object).

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
public static final String
LOCAL_ADDRESS_ATTRIBUTE_NAME

The local address attribute name.

public static final String
LOCAL_PORT_ATTRIBUTE_NAME

The local port attribute name.

public static final String
REMOTE_ADDRESS_ATTRIBUTE_NAME

The remote address attribute name.

public static final String
REMOTE_PORT_ATTRIBUTE_NAME

The remote port attribute name.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Request
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOCAL_ADDRESS_ATTRIBUTE_NAMEback to summary
public static final String LOCAL_ADDRESS_ATTRIBUTE_NAME

The local address attribute name.

LOCAL_PORT_ATTRIBUTE_NAMEback to summary
public static final String LOCAL_PORT_ATTRIBUTE_NAME

The local port attribute name.

REMOTE_ADDRESS_ATTRIBUTE_NAMEback to summary
public static final String REMOTE_ADDRESS_ATTRIBUTE_NAME

The remote address attribute name.

REMOTE_PORT_ATTRIBUTE_NAMEback to summary
public static final String REMOTE_PORT_ATTRIBUTE_NAME

The remote port attribute name.

Constructor Detail

ProxyCustomizerback to summary
public ProxyCustomizer()

Method Detail

customizeback to summary
public Request customize(Request request, HttpFields.Mutable responseHeaders)

Implements org.eclipse.jetty.server.HttpConfiguration.Customizer.customize.

Annotations
@Override
org.eclipse.jetty.server back to summary

private Class ProxyCustomizer.ProxyRequest

extends Wrapper
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
private final int
private final String
private final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
public Set<String>
Inherited from org.eclipse.jetty.server.Request.Wrapper:
addFailureListeneraddHttpStreamWrapperaddIdleTimeoutListenerasAttributeMapclearAttributesconsumeAvailabledemandfailgetBeginNanoTimegetComponentsgetConnectionMetaDatagetContextgetHeadersgetHeadersNanoTimegetHttpURIgetIdgetLengthgetMethodgetSessiongetTrailersgetTunnelSupportgetWrappedisSecurepushreadremoveAttributesetAttribute

Field Detail

_localAddressback to summary
private final String _localAddress
_localPortback to summary
private final int _localPort
_remoteAddressback to summary
private final String _remoteAddress
_remotePortback to summary
private final int _remotePort

Constructor Detail

ProxyRequestback to summary
private ProxyRequest(Request request, SocketAddress local, SocketAddress remote)

Method Detail

getAttributeback to summary
public Object getAttribute(String name)

Overrides org.eclipse.jetty.server.Request.Wrapper.getAttribute.

Implements org.eclipse.jetty.util.Attributes.getAttribute.

Doc from org.eclipse.jetty.util.Attributes.getAttribute.

Get an attribute

Parameters
name:String

the attribute to get

Returns:Object

the value of the attribute

Annotations
@Override
getAttributeNameSetback to summary
public Set<String> getAttributeNameSet()

Overrides org.eclipse.jetty.server.Request.Wrapper.getAttributeNameSet.

Implements org.eclipse.jetty.util.Attributes.getAttributeNameSet.

Doc from org.eclipse.jetty.util.Attributes.getAttributeNameSet.

Get the immutable set of attribute names.

Returns:Set<String>

Set of attribute names

Annotations
@Override