public abstract class AbstractHttpConnection extends AbstractConnection implements Dumpable
| Modifier and Type | Field and Description |
|---|---|
protected Buffer |
_connectionHeader |
protected HttpDestination |
_destination |
protected HttpExchange |
_exchange |
protected HttpGenerator |
_generator |
protected boolean |
_http11 |
protected HttpParser |
_parser |
protected HttpExchange |
_pipeline |
protected boolean |
_reserved |
protected int |
_status |
_endp| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelIdleTimeout() |
void |
close() |
protected void |
commitRequest() |
String |
dump() |
void |
dump(Appendable out,
String indent) |
protected void |
exchangeExpired(HttpExchange exchange) |
HttpDestination |
getDestination() |
abstract Connection |
handle()
Handle the connection.
|
boolean |
isIdle() |
boolean |
isReserved() |
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 |
onClose()
Called after the connection is closed
|
protected void |
reset() |
boolean |
send(HttpExchange ex) |
void |
setDestination(HttpDestination destination) |
void |
setIdleTimeout() |
void |
setReserved(boolean reserved) |
String |
toDetailString() |
String |
toString() |
getEndPoint, getTimeStamp, onIdleExpiredprotected HttpDestination _destination
protected HttpGenerator _generator
protected HttpParser _parser
protected boolean _http11
protected int _status
protected Buffer _connectionHeader
protected boolean _reserved
protected volatile HttpExchange _exchange
protected HttpExchange _pipeline
public void setReserved(boolean reserved)
public boolean isReserved()
public HttpDestination getDestination()
public void setDestination(HttpDestination destination)
public boolean send(HttpExchange ex) throws IOException
IOExceptionpublic abstract Connection handle() throws IOException
Connectionhandle in interface ConnectionIOException - if the handling of I/O operations failpublic boolean isIdle()
isIdle in interface ConnectionConnection.onIdleExpired(long)public boolean isSuspended()
ConnectionThe 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 Connectionpublic void onClose()
ConnectiononClose in interface Connectionprotected void commitRequest()
throws IOException
IOExceptionprotected void reset()
throws IOException
IOExceptionpublic String toString()
toString in class AbstractConnectionpublic String toDetailString()
public void close()
throws IOException
IOExceptionpublic void setIdleTimeout()
public boolean cancelIdleTimeout()
protected void exchangeExpired(HttpExchange exchange)
public String dump()
dump in interface DumpableDumpable.dump()public void dump(Appendable out, String indent) throws IOException
dump in interface DumpableIOExceptionDumpable.dump(java.lang.Appendable, java.lang.String)Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.