|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.noelios.restlet.http.HttpCall
com.noelios.restlet.http.HttpClientCall
com.noelios.restlet.ext.net.HttpUrlConnectionCall
public class HttpUrlConnectionCall
HTTP client connector call based on JDK's java.net.HttpURLConnection class.
Constructor Summary | |
---|---|
HttpUrlConnectionCall(HttpClientHelper helper,
String method,
String requestUri,
boolean hasEntity)
Constructor. |
Method Summary | |
---|---|
HttpURLConnection |
getConnection()
Returns the connection. |
HttpClientHelper |
getHelper()
Returns the HTTP client helper. |
String |
getReasonPhrase()
Returns the response reason phrase. |
OutputStream |
getRequestStream()
Returns the request entity stream if it exists. |
Series<Parameter> |
getResponseHeaders()
Returns the modifiable list of response headers. |
InputStream |
getResponseStream()
Returns the response stream if it exists. |
String |
getServerAddress()
Returns the response address. Corresponds to the IP address of the responding server. |
int |
getStatusCode()
Returns the response status code. |
Status |
sendRequest(Request request)
Sends the request to the client. |
Methods inherited from class com.noelios.restlet.http.HttpClientCall |
---|
getLocalAddress, getRequestChannel, getResponseChannel, getResponseEntity |
Methods inherited from class com.noelios.restlet.http.HttpCall |
---|
formatDate, getClientAddress, getClientPort, getConnectorService, getHostDomain, getHostPort, getLogger, getMethod, getProtocol, getRequestHeaders, getRequestUri, getServerPort, getVersion, isConfidential, parseDate, setClientAddress, setClientPort, setConfidential, setHostDomain, setHostPort, setLogger, setMethod, setProtocol, setReasonPhrase, setRequestUri, setServerAddress, setServerPort, setStatusCode, setVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpUrlConnectionCall(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
Method Detail |
---|
public HttpClientHelper getHelper()
getHelper
in class HttpClientCall
public HttpURLConnection getConnection()
public Status sendRequest(Request request)
sendRequest
in class HttpClientCall
request
- The high-level request.
public OutputStream getRequestStream()
getRequestStream
in class HttpClientCall
public String getServerAddress()
getServerAddress
in class HttpCall
public Series<Parameter> getResponseHeaders()
getResponseHeaders
in class HttpCall
public int getStatusCode() throws IOException
getStatusCode
in class HttpCall
IOException
public String getReasonPhrase()
getReasonPhrase
in class HttpCall
public InputStream getResponseStream()
getResponseStream
in class HttpClientCall
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |