|
||||||||||
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
public class HttpClientCall
Low-level HTTP client call.
Constructor Summary | |
---|---|
HttpClientCall(HttpClientHelper helper,
String method,
String requestUri)
Constructor setting the request address to the local host. |
Method Summary | |
---|---|
HttpClientHelper |
getHelper()
Returns the HTTP client helper. |
static String |
getLocalAddress()
Returns the local IP address or 127.0.0.1 if the resolution fails. |
WritableByteChannel |
getRequestChannel()
Returns the request entity channel if it exists. |
OutputStream |
getRequestStream()
Returns the request entity stream if it exists. |
ReadableByteChannel |
getResponseChannel()
Returns the response channel if it exists. |
Representation |
getResponseEntity()
Returns the response entity if available. |
InputStream |
getResponseStream()
Returns the response stream if it exists. |
Status |
sendRequest(Request request)
Sends the request to the client. |
Methods inherited from class com.noelios.restlet.http.HttpCall |
---|
formatDate, getClientAddress, getClientPort, getConnectorService, getHostDomain, getHostPort, getLogger, getMethod, getProtocol, getReasonPhrase, getRequestHeaders, getRequestUri, getResponseHeaders, getServerAddress, getServerPort, getStatusCode, 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 HttpClientCall(HttpClientHelper helper, String method, String requestUri)
helper
- The parent HTTP client helper.method
- The method name.requestUri
- The request URI.Method Detail |
---|
public HttpClientHelper getHelper()
public static String getLocalAddress()
public WritableByteChannel getRequestChannel()
public OutputStream getRequestStream()
public Status sendRequest(Request request)
request
- The high-level request.public ReadableByteChannel getResponseChannel()
public InputStream getResponseStream()
public Representation getResponseEntity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |