|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jetty.server.handler.ConnectHandler.ClientToProxyConnection
public class ConnectHandler.ClientToProxyConnection
| Constructor Summary | |
|---|---|
ConnectHandler.ClientToProxyConnection(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> context,
java.nio.channels.SocketChannel channel,
EndPoint endPoint,
long timestamp)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectHandler.ClientToProxyConnection(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> context,
java.nio.channels.SocketChannel channel,
EndPoint endPoint,
long timestamp)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public Connection handle()
throws java.io.IOException
Connection
handle in interface Connectionjava.io.IOException - if the handling of I/O operations fail
public void onInputShutdown()
throws java.io.IOException
onInputShutdown in interface AsyncConnectionjava.io.IOExceptionpublic long getTimeStamp()
getTimeStamp in interface Connectionpublic boolean isIdle()
isIdle in interface ConnectionConnection.onIdleExpired(long)public boolean isSuspended()
ConnectionThe 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 Connectionpublic void onClose()
Connection
onClose in interface Connectionpublic void setConnection(ConnectHandler.ProxyToServerConnection connection)
public void closeClient()
throws java.io.IOException
java.io.IOException
public void closeServer()
throws java.io.IOException
java.io.IOExceptionpublic void close()
public void shutdownOutput()
throws java.io.IOException
java.io.IOExceptionpublic void onIdleExpired(long idleForMs)
Connection
onIdleExpired in interface ConnectionidleForMs - how long the connection has been idleConnection.isIdle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||