org.eclipse.jetty.server
Class AsyncHttpConnection

java.lang.Object
  extended by org.eclipse.jetty.io.AbstractConnection
      extended by org.eclipse.jetty.server.AbstractHttpConnection
          extended by org.eclipse.jetty.server.AsyncHttpConnection
All Implemented Interfaces:
Connection, AsyncConnection

public class AsyncHttpConnection
extends AbstractHttpConnection
implements AsyncConnection

Asychronous Server HTTP connection


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jetty.server.AbstractHttpConnection
AbstractHttpConnection.Output, AbstractHttpConnection.OutputWriter
 
Field Summary
 
Fields inherited from class org.eclipse.jetty.server.AbstractHttpConnection
_connector, _generator, _in, _out, _parser, _printWriter, _request, _requestFields, _response, _responseFields, _server, _uri, _writer
 
Fields inherited from class org.eclipse.jetty.io.AbstractConnection
_endp
 
Constructor Summary
AsyncHttpConnection(Connector connector, EndPoint endpoint, Server server)
           
 
Method Summary
 Connection handle()
          Handle the connection.
 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 onInputShutdown()
           
 void reset()
           
 
Methods inherited from class org.eclipse.jetty.server.AbstractHttpConnection
commitResponse, completeResponse, content, flushResponse, getAssociatedObject, getConnector, getCurrentConnection, getGenerator, getInputStream, getMaxIdleTime, getOutputStream, getParser, getPrintWriter, getRequest, getRequestFields, getRequests, getResolveNames, getResponse, getResponseFields, getServer, handleRequest, headerComplete, include, included, isConfidential, isExpecting100Continues, isExpecting102Processing, isIdle, isIncluding, isIntegral, isResponseCommitted, messageComplete, newHttpGenerator, newHttpParser, onClose, parsedHeader, setAssociatedObject, setCurrentConnection, startRequest, toString
 
Methods inherited from class org.eclipse.jetty.io.AbstractConnection
getEndPoint, getTimeStamp, onIdleExpired
 
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, isIdle, onClose, onIdleExpired
 

Constructor Detail

AsyncHttpConnection

public AsyncHttpConnection(Connector connector,
                           EndPoint endpoint,
                           Server server)
Method Detail

handle

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

Specified by:
handle in interface Connection
Specified by:
handle in class AbstractHttpConnection
Returns:
The Connection to use for the next handling of the connection. This allows protocol upgrades and support for CONNECT.
Throws:
java.io.IOException - if the handling of I/O operations fail

onInputShutdown

public void onInputShutdown()
                     throws java.io.IOException
Specified by:
onInputShutdown in interface AsyncConnection
Throws:
java.io.IOException

reset

public void reset()
Overrides:
reset in class AbstractHttpConnection

isSuspended

public boolean isSuspended()
Description copied from interface: 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().

Specified by:
isSuspended in interface Connection
Overrides:
isSuspended in class AbstractHttpConnection
Returns:
true to indicate interest in further reads, false otherwise
See Also:
Connection.isSuspended()


Copyright © 2012. All Rights Reserved.