org.eclipse.jetty.server.handler
类 ConnectHandler.ProxyToServerConnection

java.lang.Object
  继承者 org.eclipse.jetty.server.handler.ConnectHandler.ProxyToServerConnection
所有已实现的接口:
Connection, AsyncConnection
包容类:
ConnectHandler

public class ConnectHandler.ProxyToServerConnection
extends Object
implements AsyncConnection


构造方法摘要
ConnectHandler.ProxyToServerConnection(ConcurrentMap<String,Object> context, Buffer data)
           
 
方法摘要
 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 ready()
           
 void setConnection(ConnectHandler.ClientToProxyConnection connection)
           
 void setEndPoint(AsyncEndPoint endpoint)
           
 void setTimeStamp(long timestamp)
           
 void shutdownOutput()
           
 String toString()
           
 void waitReady(long timeout)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

ConnectHandler.ProxyToServerConnection

public ConnectHandler.ProxyToServerConnection(ConcurrentMap<String,Object> context,
                                              Buffer data)
方法详细信息

toString

public String toString()
覆盖:
Object 中的 toString

handle

public Connection handle()
                  throws IOException
从接口 Connection 复制的描述
Handle the connection.

指定者:
接口 Connection 中的 handle
返回:
The Connection to use for the next handling of the connection. This allows protocol upgrades and support for CONNECT.
抛出:
IOException - if the handling of I/O operations fail

onInputShutdown

public void onInputShutdown()
                     throws IOException
指定者:
接口 AsyncConnection 中的 onInputShutdown
抛出:
IOException

setConnection

public void setConnection(ConnectHandler.ClientToProxyConnection connection)

getTimeStamp

public long getTimeStamp()
指定者:
接口 Connection 中的 getTimeStamp
返回:
the timestamp at which the connection was created

setTimeStamp

public void setTimeStamp(long timestamp)

setEndPoint

public void setEndPoint(AsyncEndPoint endpoint)

isIdle

public boolean isIdle()
指定者:
接口 Connection 中的 isIdle
返回:
whether this connection is idle, that is not parsing and not generating
另请参见:
Connection.onIdleExpired(long)

isSuspended

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().

指定者:
接口 Connection 中的 isSuspended
返回:
true to indicate interest in further reads, false otherwise

onClose

public void onClose()
从接口 Connection 复制的描述
Called after the connection is closed

指定者:
接口 Connection 中的 onClose

ready

public void ready()

waitReady

public void waitReady(long timeout)
               throws IOException
抛出:
IOException

closeClient

public void closeClient()
                 throws IOException
抛出:
IOException

closeServer

public void closeServer()
                 throws IOException
抛出:
IOException

close

public void close()

shutdownOutput

public void shutdownOutput()
                    throws IOException
抛出:
IOException

onIdleExpired

public void onIdleExpired(long idleForMs)
从接口 Connection 复制的描述
Called when the connection idle timeout expires

指定者:
接口 Connection 中的 onIdleExpired
参数:
idleForMs - how long the connection has been idle
另请参见:
Connection.isIdle()


Copyright © 2013. All Rights Reserved.