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

java.lang.Object
  extended by org.eclipse.jetty.io.AbstractConnection
      extended by org.eclipse.jetty.server.handler.ConnectHandler.ProxyToServerConnection
All Implemented Interfaces:
Connection, Idleable
Enclosing class:
ConnectHandler

public class ConnectHandler.ProxyToServerConnection
extends AbstractConnection
implements Connection


Field Summary
 
Fields inherited from class org.eclipse.jetty.io.AbstractConnection
_endp
 
Constructor Summary
ConnectHandler.ProxyToServerConnection(ConcurrentMap<String,Object> context, Buffer data, ConnectHandler.ClientToProxyConnection toClient)
           
ConnectHandler.ProxyToServerConnection(EndPoint endp, ConnectHandler.ProxyToServerConnection connection)
           
 
Method Summary
 void close()
           
 void closeClient()
           
 void closed()
          Called when the connection is closed
 void closeServer()
           
 Connection handle()
          Handle the connection.
 boolean isIdle()
           
 boolean isSuspended()
           
 void ready()
           
 String toString()
           
 void waitReady(long timeout)
           
 
Methods inherited from class org.eclipse.jetty.io.AbstractConnection
getEndPoint, getTimeStamp, idleExpired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jetty.io.Connection
getTimeStamp
 

Constructor Detail

ConnectHandler.ProxyToServerConnection

public ConnectHandler.ProxyToServerConnection(ConcurrentMap<String,Object> context,
                                              Buffer data,
                                              ConnectHandler.ClientToProxyConnection toClient)

ConnectHandler.ProxyToServerConnection

public ConnectHandler.ProxyToServerConnection(EndPoint endp,
                                              ConnectHandler.ProxyToServerConnection connection)
Method Detail

toString

public String toString()
Overrides:
toString in class AbstractConnection

handle

public Connection handle()
                  throws IOException
Description copied from interface: Connection
Handle the connection.

Specified by:
handle in interface Connection
Returns:
The Connection to use for the next handling of the connection. This allows protocol upgrades and support for CONNECT.
Throws:
IOException

isIdle

public boolean isIdle()
Specified by:
isIdle in interface Connection

isSuspended

public boolean isSuspended()
Specified by:
isSuspended in interface Connection

closed

public void closed()
Description copied from interface: Connection
Called when the connection is closed

Specified by:
closed in interface Connection

ready

public void ready()

waitReady

public void waitReady(long timeout)
               throws IOException
Throws:
IOException

closeClient

public void closeClient()
                 throws IOException
Throws:
IOException

closeServer

public void closeServer()
                 throws IOException
Throws:
IOException

close

public void close()


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.