| |
|
| com.noelios.restlet.http.HttpClientCall com.noelios.restlet.ext.net.HttpUrlConnectionCall
HttpUrlConnectionCall | public class HttpUrlConnectionCall extends HttpClientCall (Code) | | HTTP client connector call based on JDK's java.net.HttpURLConnection class.
author: Jerome Louvel (contact@noelios.com) |
HttpUrlConnectionCall | public HttpUrlConnectionCall(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 - |
getReasonPhrase | public String getReasonPhrase()(Code) | | Returns the response reason phrase.
The response reason phrase. |
getRequestStream | public OutputStream getRequestStream()(Code) | | Returns the request entity stream if it exists.
The request entity stream if it exists. |
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() throws IOException(Code) | | Returns the response status code.
The response status code. throws: IOException - |
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. |
|
|
|