Module org.eclipse.jetty.server
Package org.eclipse.jetty.server
Class ProxyConnectionFactory.ProxyEndPoint
- java.lang.Object
-
- org.eclipse.jetty.util.AttributesMap
-
- org.eclipse.jetty.server.ProxyConnectionFactory.ProxyEndPoint
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.eclipse.jetty.io.EndPoint,org.eclipse.jetty.io.EndPoint.Wrapper,org.eclipse.jetty.util.Attributes,org.eclipse.jetty.util.component.Dumpable
- Enclosing class:
- ProxyConnectionFactory
public static class ProxyConnectionFactory.ProxyEndPoint extends org.eclipse.jetty.util.AttributesMap implements org.eclipse.jetty.io.EndPoint, org.eclipse.jetty.io.EndPoint.Wrapper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
org.eclipse.jetty.util.Attributes.Wrapper
-
-
Constructor Summary
Constructors Constructor Description ProxyEndPoint(org.eclipse.jetty.io.EndPoint endPoint, java.net.InetSocketAddress remote, java.net.InetSocketAddress local)Deprecated.ProxyEndPoint(org.eclipse.jetty.io.EndPoint endPoint, java.net.SocketAddress local, java.net.SocketAddress remote)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(java.lang.Throwable cause)intfill(java.nio.ByteBuffer buffer)voidfillInterested(org.eclipse.jetty.util.Callback callback)booleanflush(java.nio.ByteBuffer... buffer)org.eclipse.jetty.io.ConnectiongetConnection()longgetCreatedTimeStamp()longgetIdleTimeout()java.net.InetSocketAddressgetLocalAddress()java.net.SocketAddressgetLocalSocketAddress()java.net.InetSocketAddressgetRemoteAddress()java.net.SocketAddressgetRemoteSocketAddress()byte[]getTLV(int type)Gets a TLV vector, see section 2.2.7 of the PROXY protocol specification.java.lang.ObjectgetTransport()booleanisFillInterested()booleanisInputShutdown()booleanisOpen()booleanisOutputShutdown()voidonClose(java.lang.Throwable cause)voidonOpen()voidsetConnection(org.eclipse.jetty.io.Connection connection)voidsetIdleTimeout(long idleTimeout)voidshutdownOutput()java.lang.StringtoString()booleantryFillInterested(org.eclipse.jetty.util.Callback callback)org.eclipse.jetty.io.EndPointunwrap()voidupgrade(org.eclipse.jetty.io.Connection newConnection)voidwrite(org.eclipse.jetty.util.Callback callback, java.nio.ByteBuffer... buffers)-
Methods inherited from class org.eclipse.jetty.util.AttributesMap
addAll, clearAttributes, dump, dump, getAttribute, getAttributeEntrySet, getAttributeNames, getAttributeNamesCopy, getAttributeNameSet, removeAttribute, setAttribute, size
-
-
-
-
Constructor Detail
-
ProxyEndPoint
@Deprecated public ProxyEndPoint(org.eclipse.jetty.io.EndPoint endPoint, java.net.InetSocketAddress remote, java.net.InetSocketAddress local)Deprecated.
-
ProxyEndPoint
public ProxyEndPoint(org.eclipse.jetty.io.EndPoint endPoint, java.net.SocketAddress local, java.net.SocketAddress remote)
-
-
Method Detail
-
unwrap
public org.eclipse.jetty.io.EndPoint unwrap()
- Specified by:
unwrapin interfaceorg.eclipse.jetty.io.EndPoint.Wrapper
-
getTLV
public byte[] getTLV(int type)
Gets a TLV vector, see section 2.2.7 of the PROXY protocol specification.
- Parameters:
type- the TLV type- Returns:
- the TLV value or null if not present.
-
close
public void close(java.lang.Throwable cause)
- Specified by:
closein interfaceorg.eclipse.jetty.io.EndPoint
-
fill
public int fill(java.nio.ByteBuffer buffer) throws java.io.IOException- Specified by:
fillin interfaceorg.eclipse.jetty.io.EndPoint- Throws:
java.io.IOException
-
fillInterested
public void fillInterested(org.eclipse.jetty.util.Callback callback) throws java.nio.channels.ReadPendingException- Specified by:
fillInterestedin interfaceorg.eclipse.jetty.io.EndPoint- Throws:
java.nio.channels.ReadPendingException
-
flush
public boolean flush(java.nio.ByteBuffer... buffer) throws java.io.IOException- Specified by:
flushin interfaceorg.eclipse.jetty.io.EndPoint- Throws:
java.io.IOException
-
getConnection
public org.eclipse.jetty.io.Connection getConnection()
- Specified by:
getConnectionin interfaceorg.eclipse.jetty.io.EndPoint
-
setConnection
public void setConnection(org.eclipse.jetty.io.Connection connection)
- Specified by:
setConnectionin interfaceorg.eclipse.jetty.io.EndPoint
-
getCreatedTimeStamp
public long getCreatedTimeStamp()
- Specified by:
getCreatedTimeStampin interfaceorg.eclipse.jetty.io.EndPoint
-
getIdleTimeout
public long getIdleTimeout()
- Specified by:
getIdleTimeoutin interfaceorg.eclipse.jetty.io.EndPoint
-
setIdleTimeout
public void setIdleTimeout(long idleTimeout)
- Specified by:
setIdleTimeoutin interfaceorg.eclipse.jetty.io.EndPoint
-
getLocalAddress
public java.net.InetSocketAddress getLocalAddress()
- Specified by:
getLocalAddressin interfaceorg.eclipse.jetty.io.EndPoint
-
getLocalSocketAddress
public java.net.SocketAddress getLocalSocketAddress()
- Specified by:
getLocalSocketAddressin interfaceorg.eclipse.jetty.io.EndPoint
-
getRemoteAddress
public java.net.InetSocketAddress getRemoteAddress()
- Specified by:
getRemoteAddressin interfaceorg.eclipse.jetty.io.EndPoint
-
getRemoteSocketAddress
public java.net.SocketAddress getRemoteSocketAddress()
- Specified by:
getRemoteSocketAddressin interfaceorg.eclipse.jetty.io.EndPoint
-
getTransport
public java.lang.Object getTransport()
- Specified by:
getTransportin interfaceorg.eclipse.jetty.io.EndPoint
-
isFillInterested
public boolean isFillInterested()
- Specified by:
isFillInterestedin interfaceorg.eclipse.jetty.io.EndPoint
-
isInputShutdown
public boolean isInputShutdown()
- Specified by:
isInputShutdownin interfaceorg.eclipse.jetty.io.EndPoint
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceorg.eclipse.jetty.io.EndPoint
-
isOutputShutdown
public boolean isOutputShutdown()
- Specified by:
isOutputShutdownin interfaceorg.eclipse.jetty.io.EndPoint
-
onClose
public void onClose(java.lang.Throwable cause)
- Specified by:
onClosein interfaceorg.eclipse.jetty.io.EndPoint
-
onOpen
public void onOpen()
- Specified by:
onOpenin interfaceorg.eclipse.jetty.io.EndPoint
-
shutdownOutput
public void shutdownOutput()
- Specified by:
shutdownOutputin interfaceorg.eclipse.jetty.io.EndPoint
-
toString
public java.lang.String toString()
- Overrides:
toStringin classorg.eclipse.jetty.util.AttributesMap
-
tryFillInterested
public boolean tryFillInterested(org.eclipse.jetty.util.Callback callback)
- Specified by:
tryFillInterestedin interfaceorg.eclipse.jetty.io.EndPoint
-
upgrade
public void upgrade(org.eclipse.jetty.io.Connection newConnection)
- Specified by:
upgradein interfaceorg.eclipse.jetty.io.EndPoint
-
write
public void write(org.eclipse.jetty.util.Callback callback, java.nio.ByteBuffer... buffers) throws java.nio.channels.WritePendingException- Specified by:
writein interfaceorg.eclipse.jetty.io.EndPoint- Throws:
java.nio.channels.WritePendingException
-
-