|
||||||||||
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.httpclient.HttpMethodCall
public class HttpMethodCall
HTTP client connector call based on Apache HTTP Client's HttpMethod class.
Constructor Summary | |
---|---|
HttpMethodCall(HttpClientHelper helper,
java.lang.String method,
java.lang.String requestUri,
boolean hasEntity)
Constructor. |
Method Summary | |
---|---|
HttpMethod |
getHttpMethod()
Returns the HTTP method. |
java.lang.String |
getReasonPhrase()
Returns the response reason phrase. |
java.nio.channels.WritableByteChannel |
getRequestEntityChannel()
|
java.io.OutputStream |
getRequestEntityStream()
|
java.io.OutputStream |
getRequestHeadStream()
|
java.nio.channels.ReadableByteChannel |
getResponseEntityChannel(long size)
|
java.io.InputStream |
getResponseEntityStream(long size)
|
Series<Parameter> |
getResponseHeaders()
Returns the modifiable list of response headers. |
java.lang.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 |
---|
copyResponseEntityHeaders, getContentLength, getHelper, getLocalAddress, getRepresentation, getRepresentation, getResponseEntity, isClientKeepAlive, isServerKeepAlive, parseContentDisposition, shouldRequestBeChunked |
Methods inherited from class com.noelios.restlet.http.HttpCall |
---|
formatDate, getClientAddress, getClientPort, getConnectorService, getContentLength, getHostDomain, getHostPort, getLogger, getMethod, getProtocol, getRequestHeaders, getRequestUri, getServerPort, getVersion, isConfidential, isConnectionBroken, isKeepAlive, isRequestChunked, isResponseChunked, parseDate, setClientAddress, setClientPort, setConfidential, setHostDomain, setHostPort, 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 HttpMethodCall(HttpClientHelper helper, java.lang.String method, java.lang.String requestUri, boolean hasEntity) throws java.io.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.
java.io.IOException
Method Detail |
---|
public HttpMethod getHttpMethod()
public java.lang.String getReasonPhrase()
getReasonPhrase
in class HttpCall
public java.nio.channels.WritableByteChannel getRequestEntityChannel()
getRequestEntityChannel
in class HttpClientCall
public java.io.OutputStream getRequestEntityStream()
getRequestEntityStream
in class HttpClientCall
public java.io.OutputStream getRequestHeadStream()
getRequestHeadStream
in class HttpClientCall
public java.nio.channels.ReadableByteChannel getResponseEntityChannel(long size)
getResponseEntityChannel
in class HttpClientCall
public java.io.InputStream getResponseEntityStream(long size)
getResponseEntityStream
in class HttpClientCall
public Series<Parameter> getResponseHeaders()
getResponseHeaders
in class HttpCall
public java.lang.String getServerAddress()
getServerAddress
in class HttpCall
public int getStatusCode()
getStatusCode
in class HttpCall
public Status sendRequest(Request request)
sendRequest
in class HttpClientCall
request
- The high-level request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |