|
Restlet Framework 2.2.3 Google Web Toolkit |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.client.engine.adapter.Call
org.restlet.client.engine.adapter.ClientCall
org.restlet.client.engine.adapter.GwtClientCall
public class GwtClientCall
HTTP client connector call based on GWT's HTTP module.
Constructor Summary | |
---|---|
GwtClientCall(GwtHttpClientHelper helper,
String method,
String requestUri,
boolean hasEntity)
Constructor. |
Method Summary | |
---|---|
GwtHttpClientHelper |
getHelper()
Returns the HTTP client helper. |
String |
getReasonPhrase()
Returns the response reason phrase. |
RequestBuilder |
getRequestBuilder()
Returns the GWT request builder. |
String |
getRequestEntityString()
Returns the request entity string if it exists. |
Response |
getResponse()
Returns the GWT response. |
InputStream |
getResponseEntityStream(long size)
Returns the response entity stream if it exists. |
Series<Header> |
getResponseHeaders()
Returns the modifiable list of response headers. |
String |
getServerAddress()
Returns the response address. Corresponds to the IP address of the responding server. |
int |
getStatusCode()
Returns the status code. |
void |
sendRequest(Request request,
Response response,
Uniform onResponseCallback)
Sends the request to the client. |
void |
setResponse(Response response)
Sets the GWT response. |
Methods inherited from class org.restlet.client.engine.adapter.ClientCall |
---|
getContentLength, getLocalAddress, getResponseEntity, isClientKeepAlive, isServerKeepAlive, shouldRequestBeChunked |
Methods inherited from class org.restlet.client.engine.adapter.Call |
---|
getClientAddress, getClientPort, getHostDomain, getHostPort, getLogger, getMethod, getProtocol, getRepresentation, getRequestHeaders, getRequestUri, getServerPort, getVersion, isBroken, isConfidential, isKeepAlive, isRequestChunked, isResponseChunked, 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 GwtClientCall(GwtHttpClientHelper helper, String method, String requestUri, boolean hasEntity)
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.Method Detail |
---|
public GwtHttpClientHelper getHelper()
getHelper
in class ClientCall
public String getReasonPhrase()
getReasonPhrase
in class Call
public RequestBuilder getRequestBuilder()
public String getRequestEntityString()
ClientCall
getRequestEntityString
in class ClientCall
public Response getResponse()
public InputStream getResponseEntityStream(long size)
ClientCall
getResponseEntityStream
in class ClientCall
size
- The expected entity size or -1 if unknown.
public Series<Header> getResponseHeaders()
getResponseHeaders
in class Call
public String getServerAddress()
Call
getServerAddress
in class Call
public int getStatusCode()
Call
getStatusCode
in class Call
public void sendRequest(Request request, Response response, Uniform onResponseCallback) throws Exception
ClientCall
sendRequest
in class ClientCall
request
- The high-level request.response
- The high-level response.onResponseCallback
- The callback invoked upon request completion.
Exception
public void setResponse(Response response)
response
- The GWT response.
|
Restlet Framework 2.2.3 Google Web Toolkit |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |