public class AsyncHttpConnection extends AbstractHttpConnection implements AsyncConnection
AbstractHttpConnection.Output, AbstractHttpConnection.OutputWriter
_connector, _generator, _in, _out, _parser, _printWriter, _request, _requestFields, _response, _responseFields, _server, _uri, _writer
_endp
Constructor and Description |
---|
AsyncHttpConnection(Connector connector,
EndPoint endpoint,
Server server) |
Modifier and Type | Method and Description |
---|---|
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() |
commitResponse, completeResponse, content, earlyEOF, flushResponse, getAssociatedObject, getConnector, getCurrentConnection, getGenerator, getInputStream, getMaxIdleTime, getOutputStream, getParser, getPrintWriter, getRequest, getRequestFields, getRequests, getResolveNames, getResponse, getResponseFields, getServer, handleRequest, headerComplete, include, included, isConfidential, isEarlyEOF, isExpecting100Continues, isExpecting102Processing, isIdle, isIncluding, isIntegral, isResponseCommitted, messageComplete, newHttpGenerator, newHttpParser, onClose, parsedHeader, setAssociatedObject, setCurrentConnection, startRequest, toString
getEndPoint, getTimeStamp, onIdleExpired
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTimeStamp, isIdle, onClose, onIdleExpired
public Connection handle() throws IOException
Connection
handle
in interface Connection
handle
in class AbstractHttpConnection
IOException
- if the handling of I/O operations failpublic void onInputShutdown() throws IOException
onInputShutdown
in interface AsyncConnection
IOException
public void reset()
reset
in class AbstractHttpConnection
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()
.
isSuspended
in interface Connection
isSuspended
in class AbstractHttpConnection
Connection.isSuspended()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.