public interface HttpClientConnection extends BHttpConnection
Modifier and Type | Method and Description |
---|---|
boolean |
isConsistent()
Checks whether this connection is in a consistent state.
|
void |
receiveResponseEntity(ClassicHttpResponse response)
Receives the next response entity available from this connection and
attaches it to an existing HttpResponse object.
|
ClassicHttpResponse |
receiveResponseHeader()
Receives the request line and headers of the next response available from
this connection.
|
void |
sendRequestEntity(ClassicHttpRequest request)
Sends the request entity over the connection.
|
void |
sendRequestHeader(ClassicHttpRequest request)
Sends the request line and all headers over the connection.
|
void |
terminateRequest(ClassicHttpRequest request)
Terminates request prematurely potentially leaving
the connection in a inconsistent state.
|
flush, isDataAvailable, isStale
close, getEndpointDetails, getLocalAddress, getProtocolVersion, getRemoteAddress, getSSLSession, isOpen
getSocketTimeout, setSocketTimeout
close
boolean isConsistent()
true
if the connection is known to be
in a inconsistent state and cannot be re-used.terminateRequest(ClassicHttpRequest)
void sendRequestHeader(ClassicHttpRequest request) throws HttpException, IOException
request
- the request whose headers to send.HttpException
- in case of HTTP protocol violationIOException
- in case of an I/O errorvoid terminateRequest(ClassicHttpRequest request) throws HttpException, IOException
request
- the request to be terminated prematurely.HttpException
IOException
isConsistent()
void sendRequestEntity(ClassicHttpRequest request) throws HttpException, IOException
request
- the request whose entity to send.HttpException
- in case of HTTP protocol violationIOException
- in case of an I/O errorClassicHttpResponse receiveResponseHeader() throws HttpException, IOException
HttpException
- in case of HTTP protocol violationIOException
- in case of an I/O errorvoid receiveResponseEntity(ClassicHttpResponse response) throws HttpException, IOException
response
- the response to attach the entity toHttpException
- in case of HTTP protocol violationIOException
- in case of an I/O errorCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.