Package org.eclipse.jetty.server
Class ProxyConnectionFactory.ProxyEndPoint
- java.lang.Object
-
- org.eclipse.jetty.server.ProxyConnectionFactory.ProxyEndPoint
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,EndPoint
- Enclosing class:
- ProxyConnectionFactory
public static class ProxyConnectionFactory.ProxyEndPoint extends Object implements EndPoint
-
-
Constructor Summary
Constructors Constructor Description ProxyEndPoint(EndPoint endp, InetSocketAddress remote, InetSocketAddress local)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
fill(ByteBuffer buffer)
void
fillInterested(org.eclipse.jetty.util.Callback callback)
boolean
flush(ByteBuffer... buffer)
Connection
getConnection()
long
getCreatedTimeStamp()
long
getIdleTimeout()
InetSocketAddress
getLocalAddress()
InetSocketAddress
getRemoteAddress()
Object
getTransport()
boolean
isFillInterested()
boolean
isInputShutdown()
boolean
isOpen()
boolean
isOptimizedForDirectBuffers()
boolean
isOutputShutdown()
void
onClose()
void
onOpen()
void
setConnection(Connection connection)
void
setIdleTimeout(long idleTimeout)
void
shutdownOutput()
boolean
tryFillInterested(org.eclipse.jetty.util.Callback callback)
void
upgrade(Connection newConnection)
void
write(org.eclipse.jetty.util.Callback callback, ByteBuffer... buffers)
-
-
-
Constructor Detail
-
ProxyEndPoint
public ProxyEndPoint(EndPoint endp, InetSocketAddress remote, InetSocketAddress local)
-
-
Method Detail
-
isOptimizedForDirectBuffers
public boolean isOptimizedForDirectBuffers()
- Specified by:
isOptimizedForDirectBuffers
in interfaceEndPoint
-
getLocalAddress
public InetSocketAddress getLocalAddress()
- Specified by:
getLocalAddress
in interfaceEndPoint
-
getRemoteAddress
public InetSocketAddress getRemoteAddress()
- Specified by:
getRemoteAddress
in interfaceEndPoint
-
getCreatedTimeStamp
public long getCreatedTimeStamp()
- Specified by:
getCreatedTimeStamp
in interfaceEndPoint
-
shutdownOutput
public void shutdownOutput()
- Specified by:
shutdownOutput
in interfaceEndPoint
-
isOutputShutdown
public boolean isOutputShutdown()
- Specified by:
isOutputShutdown
in interfaceEndPoint
-
isInputShutdown
public boolean isInputShutdown()
- Specified by:
isInputShutdown
in interfaceEndPoint
-
close
public void close()
-
fill
public int fill(ByteBuffer buffer) throws IOException
- Specified by:
fill
in interfaceEndPoint
- Throws:
IOException
-
flush
public boolean flush(ByteBuffer... buffer) throws IOException
- Specified by:
flush
in interfaceEndPoint
- Throws:
IOException
-
getTransport
public Object getTransport()
- Specified by:
getTransport
in interfaceEndPoint
-
getIdleTimeout
public long getIdleTimeout()
- Specified by:
getIdleTimeout
in interfaceEndPoint
-
setIdleTimeout
public void setIdleTimeout(long idleTimeout)
- Specified by:
setIdleTimeout
in interfaceEndPoint
-
fillInterested
public void fillInterested(org.eclipse.jetty.util.Callback callback) throws ReadPendingException
- Specified by:
fillInterested
in interfaceEndPoint
- Throws:
ReadPendingException
-
tryFillInterested
public boolean tryFillInterested(org.eclipse.jetty.util.Callback callback)
- Specified by:
tryFillInterested
in interfaceEndPoint
-
isFillInterested
public boolean isFillInterested()
- Specified by:
isFillInterested
in interfaceEndPoint
-
write
public void write(org.eclipse.jetty.util.Callback callback, ByteBuffer... buffers) throws WritePendingException
- Specified by:
write
in interfaceEndPoint
- Throws:
WritePendingException
-
getConnection
public Connection getConnection()
- Specified by:
getConnection
in interfaceEndPoint
-
setConnection
public void setConnection(Connection connection)
- Specified by:
setConnection
in interfaceEndPoint
-
upgrade
public void upgrade(Connection newConnection)
-
-