org.eclipse.jetty.server.handler
public class ConnectHandler.ClientToProxyConnection extends java.lang.Object implements AsyncConnection
Constructor and Description |
---|
ConnectHandler.ClientToProxyConnection(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> context,
java.nio.channels.SocketChannel channel,
EndPoint endPoint,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeClient() |
void |
closeServer() |
long |
getTimeStamp() |
Connection |
handle()
Handle the connection.
|
boolean |
isIdle() |
boolean |
isSuspended()
The semantic of this method is to return true to indicate interest in further reads,
or false otherwise, but it is misnamed and should be really called
isReadInterested() . |
void |
onClose()
Called after the connection is closed
|
void |
onIdleExpired(long idleForMs)
Called when the connection idle timeout expires
|
void |
onInputShutdown() |
void |
setConnection(ConnectHandler.ProxyToServerConnection connection) |
void |
shutdownOutput() |
java.lang.String |
toString() |
public ConnectHandler.ClientToProxyConnection(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> context, java.nio.channels.SocketChannel channel, EndPoint endPoint, long timestamp)
public java.lang.String toString()
toString
in class java.lang.Object
public Connection handle() throws java.io.IOException
Connection
handle
in interface Connection
java.io.IOException
- if the handling of I/O operations failpublic void onInputShutdown() throws java.io.IOException
onInputShutdown
in interface AsyncConnection
java.io.IOException
public long getTimeStamp()
getTimeStamp
in interface Connection
public boolean isIdle()
isIdle
in interface Connection
Connection.onIdleExpired(long)
public boolean isSuspended()
Connection
The semantic of this method is to return true to indicate interest in further reads,
or false otherwise, but it is misnamed and should be really called isReadInterested()
.
isSuspended
in interface Connection
public void onClose()
Connection
onClose
in interface Connection
public void setConnection(ConnectHandler.ProxyToServerConnection connection)
public void closeClient() throws java.io.IOException
java.io.IOException
public void closeServer() throws java.io.IOException
java.io.IOException
public void close()
public void shutdownOutput() throws java.io.IOException
java.io.IOException
public void onIdleExpired(long idleForMs)
Connection
onIdleExpired
in interface Connection
idleForMs
- how long the connection has been idleConnection.isIdle()
Copyright © 2017. All Rights Reserved.