org.eclipse.jetty.server.handler
Class ConnectHandler.ClientToProxyConnection
java.lang.Object
org.eclipse.jetty.server.handler.ConnectHandler.ClientToProxyConnection
- All Implemented Interfaces:
- Connection
- Enclosing class:
- ConnectHandler
public class ConnectHandler.ClientToProxyConnection
- extends Object
- implements Connection
ConnectHandler.ClientToProxyConnection
public ConnectHandler.ClientToProxyConnection(ConcurrentMap<String,Object> context,
SocketChannel channel,
EndPoint endPoint,
long timestamp)
toString
public String toString()
- Overrides:
toString
in class Object
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
getTimeStamp
public long getTimeStamp()
- Specified by:
getTimeStamp
in interface Connection
- Returns:
- the timestamp at which the connection was created
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
setConnection
public void setConnection(ConnectHandler.ProxyToServerConnection connection)
closeClient
public void closeClient()
throws IOException
- Throws:
IOException
closeServer
public void closeServer()
throws IOException
- Throws:
IOException
close
public void close()
shutdownOutput
public void shutdownOutput()
throws IOException
- Throws:
IOException
idleExpired
public void idleExpired()
- Description copied from interface:
Connection
- Called when the connection idle timeout expires
- Specified by:
idleExpired
in interface Connection
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.