@Deprecated public class HttpMethodCall extends ClientCall
Constructor and Description |
---|
HttpMethodCall(HttpClientHelper helper,
String method,
String requestUri,
boolean hasEntity)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.http.client.methods.HttpUriRequest |
getHttpRequest()
Deprecated.
Returns the HTTP request.
|
org.apache.http.HttpResponse |
getHttpResponse()
Deprecated.
Returns the HTTP response.
|
String |
getReasonPhrase()
Deprecated.
Returns the response reason phrase.
|
WritableByteChannel |
getRequestEntityChannel()
Deprecated.
Returns the request entity channel if it exists.
|
OutputStream |
getRequestEntityStream()
Deprecated.
Returns the request entity stream if it exists.
|
OutputStream |
getRequestHeadStream()
Deprecated.
Returns the request head stream if it exists.
|
ReadableByteChannel |
getResponseEntityChannel(long size)
Deprecated.
Returns the response channel if it exists.
|
InputStream |
getResponseEntityStream(long size)
Deprecated.
Returns the response entity stream if it exists.
|
Series<Header> |
getResponseHeaders()
Deprecated.
Returns the modifiable list of response headers.
|
String |
getServerAddress()
Deprecated.
Returns the response address.
Corresponds to the IP address of the responding server. |
int |
getStatusCode()
Deprecated.
Returns the response status code.
|
Status |
sendRequest(Request request)
Deprecated.
Sends the request to the client.
|
void |
sendRequest(Request request,
Response response,
Uniform callback)
Deprecated.
Sends the request to the client.
|
getContentLength, getHelper, getLocalAddress, getResponseEntity, isClientKeepAlive, isServerKeepAlive, shouldRequestBeChunked
getClientAddress, getClientPort, getHostDomain, getHostPort, getLogger, getMethod, getProtocol, getRepresentation, getRepresentation, getRequestHeaders, getRequestUri, getServerPort, getUserPrincipal, getVersion, isBroken, isConfidential, isConnectionBroken, isKeepAlive, isRequestChunked, isResponseChunked, setClientAddress, setClientPort, setConfidential, setHostDomain, setHostPort, setMethod, setProtocol, setReasonPhrase, setRequestUri, setServerAddress, setServerPort, setStatusCode, setUserPrincipal, setVersion
public HttpMethodCall(HttpClientHelper helper, String method, String requestUri, boolean hasEntity) throws IOException
helper
- The parent HTTP client helper.method
- The method name.requestUri
- The request URI.hasEntity
- Indicates if the call will have an entity to send to the
server.IOException
public org.apache.http.client.methods.HttpUriRequest getHttpRequest()
public org.apache.http.HttpResponse getHttpResponse()
public String getReasonPhrase()
getReasonPhrase
in class Call
public WritableByteChannel getRequestEntityChannel()
ClientCall
getRequestEntityChannel
in class ClientCall
public OutputStream getRequestEntityStream()
ClientCall
getRequestEntityStream
in class ClientCall
public OutputStream getRequestHeadStream()
ClientCall
getRequestHeadStream
in class ClientCall
public ReadableByteChannel getResponseEntityChannel(long size)
ClientCall
getResponseEntityChannel
in class ClientCall
size
- The expected entity size or -1 if unknown.public InputStream getResponseEntityStream(long size)
ClientCall
getResponseEntityStream
in class ClientCall
size
- The expected entity size or -1 if unknown.public Series<Header> getResponseHeaders()
getResponseHeaders
in class Call
public String getServerAddress()
getServerAddress
in class Call
public int getStatusCode()
getStatusCode
in class Call
public Status sendRequest(Request request)
sendRequest
in class ClientCall
request
- The high-level request.public void sendRequest(Request request, Response response, Uniform callback) throws Exception
ClientCall
sendRequest
in class ClientCall
request
- The high-level request.response
- The high-level response.callback
- The callback invoked upon request completion.Exception
Copyright © 2005–2015. All rights reserved.