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:
Closeable
,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
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.EndPoint
org.eclipse.jetty.io.EndPoint.Wrapper
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY
-
Constructor Summary
ConstructorsConstructorDescriptionProxyEndPoint
(org.eclipse.jetty.io.EndPoint endPoint, InetSocketAddress remote, InetSocketAddress local) Deprecated.ProxyEndPoint
(org.eclipse.jetty.io.EndPoint endPoint, SocketAddress local, SocketAddress remote) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
fill
(ByteBuffer buffer) void
fillInterested
(org.eclipse.jetty.util.Callback callback) boolean
flush
(ByteBuffer... buffer) org.eclipse.jetty.io.Connection
long
long
byte[]
getTLV
(int type) Gets a TLV vector, see section 2.2.7 of the PROXY protocol specification.boolean
boolean
boolean
isOpen()
boolean
void
void
onOpen()
void
setConnection
(org.eclipse.jetty.io.Connection connection) void
setIdleTimeout
(long idleTimeout) void
toString()
boolean
tryFillInterested
(org.eclipse.jetty.util.Callback callback) org.eclipse.jetty.io.EndPoint
unwrap()
void
upgrade
(org.eclipse.jetty.io.Connection newConnection) void
write
(org.eclipse.jetty.util.Callback callback, ByteBuffer... buffers) Methods inherited from class org.eclipse.jetty.util.AttributesMap
addAll, clearAttributes, dump, dump, getAttribute, getAttributeEntrySet, getAttributeNames, getAttributeNamesCopy, getAttributeNameSet, removeAttribute, setAttribute, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable
dumpSelf
Methods inherited from interface org.eclipse.jetty.io.EndPoint
close
-
Constructor Details
-
ProxyEndPoint
@Deprecated public ProxyEndPoint(org.eclipse.jetty.io.EndPoint endPoint, InetSocketAddress remote, InetSocketAddress local) Deprecated. -
ProxyEndPoint
public ProxyEndPoint(org.eclipse.jetty.io.EndPoint endPoint, SocketAddress local, SocketAddress remote)
-
-
Method Details
-
unwrap
public org.eclipse.jetty.io.EndPoint unwrap()- Specified by:
unwrap
in 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
- Specified by:
close
in interfaceorg.eclipse.jetty.io.EndPoint
-
fill
- Specified by:
fill
in interfaceorg.eclipse.jetty.io.EndPoint
- Throws:
IOException
-
fillInterested
- Specified by:
fillInterested
in interfaceorg.eclipse.jetty.io.EndPoint
- Throws:
ReadPendingException
-
flush
- Specified by:
flush
in interfaceorg.eclipse.jetty.io.EndPoint
- Throws:
IOException
-
getConnection
public org.eclipse.jetty.io.Connection getConnection()- Specified by:
getConnection
in interfaceorg.eclipse.jetty.io.EndPoint
-
setConnection
public void setConnection(org.eclipse.jetty.io.Connection connection) - Specified by:
setConnection
in interfaceorg.eclipse.jetty.io.EndPoint
-
getCreatedTimeStamp
public long getCreatedTimeStamp()- Specified by:
getCreatedTimeStamp
in interfaceorg.eclipse.jetty.io.EndPoint
-
getIdleTimeout
public long getIdleTimeout()- Specified by:
getIdleTimeout
in interfaceorg.eclipse.jetty.io.EndPoint
-
setIdleTimeout
public void setIdleTimeout(long idleTimeout) - Specified by:
setIdleTimeout
in interfaceorg.eclipse.jetty.io.EndPoint
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceorg.eclipse.jetty.io.EndPoint
-
getLocalSocketAddress
- Specified by:
getLocalSocketAddress
in interfaceorg.eclipse.jetty.io.EndPoint
-
getRemoteAddress
- Specified by:
getRemoteAddress
in interfaceorg.eclipse.jetty.io.EndPoint
-
getRemoteSocketAddress
- Specified by:
getRemoteSocketAddress
in interfaceorg.eclipse.jetty.io.EndPoint
-
getTransport
- Specified by:
getTransport
in interfaceorg.eclipse.jetty.io.EndPoint
-
isFillInterested
public boolean isFillInterested()- Specified by:
isFillInterested
in interfaceorg.eclipse.jetty.io.EndPoint
-
isInputShutdown
public boolean isInputShutdown()- Specified by:
isInputShutdown
in interfaceorg.eclipse.jetty.io.EndPoint
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfaceorg.eclipse.jetty.io.EndPoint
-
isOutputShutdown
public boolean isOutputShutdown()- Specified by:
isOutputShutdown
in interfaceorg.eclipse.jetty.io.EndPoint
-
onClose
- Specified by:
onClose
in interfaceorg.eclipse.jetty.io.EndPoint
-
onOpen
public void onOpen()- Specified by:
onOpen
in interfaceorg.eclipse.jetty.io.EndPoint
-
shutdownOutput
public void shutdownOutput()- Specified by:
shutdownOutput
in interfaceorg.eclipse.jetty.io.EndPoint
-
toString
- Overrides:
toString
in classorg.eclipse.jetty.util.AttributesMap
-
tryFillInterested
public boolean tryFillInterested(org.eclipse.jetty.util.Callback callback) - Specified by:
tryFillInterested
in interfaceorg.eclipse.jetty.io.EndPoint
-
upgrade
public void upgrade(org.eclipse.jetty.io.Connection newConnection) - Specified by:
upgrade
in interfaceorg.eclipse.jetty.io.EndPoint
-
write
public void write(org.eclipse.jetty.util.Callback callback, ByteBuffer... buffers) throws WritePendingException - Specified by:
write
in interfaceorg.eclipse.jetty.io.EndPoint
- Throws:
WritePendingException
-