public class ServerHTTPSPDYAsyncConnection 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 |
---|
ServerHTTPSPDYAsyncConnection(Connector connector,
AsyncEndPoint endPoint,
Server server,
short version,
SPDYAsyncConnection connection,
PushStrategy pushStrategy,
Stream stream) |
Modifier and Type | Method and Description |
---|---|
void |
async() |
void |
beginRequest(Headers headers,
boolean endRequest) |
void |
commitResponse(boolean last) |
void |
completeResponse() |
void |
content(DataInfo dataInfo,
boolean endRequest) |
void |
endRequest() |
protected void |
execute(Runnable task) |
void |
flushResponse() |
AsyncEndPoint |
getEndPoint() |
Connection |
handle()
Handle the connection.
|
void |
headers(Headers headers) |
protected HttpGenerator |
newHttpGenerator(Buffers responseBuffers,
EndPoint endPoint) |
protected HttpParser |
newHttpParser(Buffers requestBuffers,
EndPoint endPoint,
HttpParser.EventHandler requestHandler) |
void |
onInputShutdown() |
protected void |
reply(Stream stream,
ReplyInfo replyInfo) |
content, 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, isSuspended, messageComplete, onClose, parsedHeader, reset, setAssociatedObject, setCurrentConnection, startRequest, toString
getTimeStamp, onIdleExpired
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTimeStamp, isIdle, isSuspended, onClose, onIdleExpired
public ServerHTTPSPDYAsyncConnection(Connector connector, AsyncEndPoint endPoint, Server server, short version, SPDYAsyncConnection connection, PushStrategy pushStrategy, Stream stream)
protected HttpParser newHttpParser(Buffers requestBuffers, EndPoint endPoint, HttpParser.EventHandler requestHandler)
newHttpParser
in class AbstractHttpConnection
protected HttpGenerator newHttpGenerator(Buffers responseBuffers, EndPoint endPoint)
newHttpGenerator
in class AbstractHttpConnection
public AsyncEndPoint getEndPoint()
getEndPoint
in class AbstractConnection
protected void execute(Runnable task)
public Connection handle()
Connection
handle
in interface Connection
handle
in class AbstractHttpConnection
public void onInputShutdown() throws IOException
onInputShutdown
in interface AsyncConnection
IOException
public void beginRequest(Headers headers, boolean endRequest)
public void headers(Headers headers)
public void content(DataInfo dataInfo, boolean endRequest)
public void endRequest()
public void async()
public void commitResponse(boolean last) throws IOException
commitResponse
in class AbstractHttpConnection
IOException
public void flushResponse() throws IOException
flushResponse
in class AbstractHttpConnection
IOException
public void completeResponse() throws IOException
completeResponse
in class AbstractHttpConnection
IOException
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.