org.eclipse.jetty.client
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() |
java.lang.String |
dump() |
void |
dump(java.lang.Appendable out,
java.lang.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) |
java.lang.String |
toDetailString() |
java.lang.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 java.io.IOException
java.io.IOException
public abstract Connection handle() throws java.io.IOException
Connection
handle
in interface Connection
java.io.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 java.io.IOException
java.io.IOException
protected void reset() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class AbstractConnection
public java.lang.String toDetailString()
public void close() throws java.io.IOException
java.io.IOException
public void setIdleTimeout()
public boolean cancelIdleTimeout()
protected void exchangeExpired(HttpExchange exchange)
public java.lang.String dump()
dump
in interface Dumpable
Dumpable.dump()
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOException
dump
in interface Dumpable
java.io.IOException
Dumpable.dump(java.lang.Appendable, java.lang.String)
Copyright © 2017. All Rights Reserved.