| com.noelios.restlet.http.HttpClientCall com.noelios.restlet.ext.httpclient.HttpMethodCall
HttpMethodCall | public class HttpMethodCall extends HttpClientCall (Code) | | HTTP client connector call based on Apache HTTP Client's HttpMethod class.
author: Jerome Louvel (contact@noelios.com) |
HttpMethodCall | public HttpMethodCall(HttpClientHelper helper, String method, String requestUri, boolean hasEntity) throws IOException(Code) | | Constructor.
Parameters: helper - The parent HTTP client helper. Parameters: method - The method name. Parameters: requestUri - The request URI. Parameters: hasEntity - Indicates if the call will have an entity to send to theserver. throws: IOException - |
getHttpMethod | public HttpMethod getHttpMethod()(Code) | | Returns the HTTP method.
The HTTP method. |
getReasonPhrase | public String getReasonPhrase()(Code) | | Returns the response reason phrase.
The response reason phrase. |
getResponseHeaders | public Series<Parameter> getResponseHeaders()(Code) | | Returns the modifiable list of response headers.
The modifiable list of response headers. |
getResponseStream | public InputStream getResponseStream()(Code) | | Returns the response stream if it exists.
The response stream if it exists. |
getServerAddress | public String getServerAddress()(Code) | | Returns the response address. Corresponds to the IP address of the
responding server.
The response address. |
getStatusCode | public int getStatusCode()(Code) | | Returns the response status code.
The response status code. |
sendRequest | public Status sendRequest(Request request)(Code) | | Sends the request to the client. Commits the request line, headers and
optional entity and send them over the network.
Parameters: request - The high-level request. The result status. |
|
|