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, onIdleExpired
protected 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
IOException
public abstract Connection handle() throws IOException
Connection
handle
in interface Connection
IOException
- if the handling of I/O operations failpublic boolean isIdle()
isIdle
in interface Connection
Connection.onIdleExpired(long)
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
public void onClose()
Connection
onClose
in interface Connection
protected void commitRequest() throws IOException
IOException
protected void reset() throws IOException
IOException
public String toString()
toString
in class AbstractConnection
public String toDetailString()
public void close() throws IOException
IOException
public void setIdleTimeout()
public boolean cancelIdleTimeout()
protected void exchangeExpired(HttpExchange exchange)
public String dump()
dump
in interface Dumpable
Dumpable.dump()
public void dump(Appendable out, String indent) throws IOException
dump
in interface Dumpable
IOException
Dumpable.dump(java.lang.Appendable, java.lang.String)
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.