public interface NHttpClientConnection extends NHttpConnection
NHttpConnection
ACTIVE, CLOSED, CLOSING
Modifier and Type | Method and Description |
---|---|
boolean |
isRequestSubmitted()
Returns
true if an HTTP request has been submitted to the
target server. |
void |
resetInput()
Resets input state.
|
void |
resetOutput()
Resets output state.
|
void |
submitRequest(HttpRequest request)
Submits
HttpRequest to be sent to the target server. |
getContext, getHttpRequest, getHttpResponse, getStatus
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown
requestInput, requestOutput, shutdown, suspendInput, suspendOutput
void submitRequest(HttpRequest request) throws IOException, HttpException
HttpRequest
to be sent to the target server.request
- HTTP requestIOException
- if I/O error occurs while submitting the requestHttpException
- if the HTTP request violates the HTTP protocol.boolean isRequestSubmitted()
true
if an HTTP request has been submitted to the
target server.true
if an HTTP request has been submitted,
false
otherwise.void resetOutput()
void resetInput()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.