public class GwtClientCall extends ClientCall
Constructor and Description |
---|
GwtClientCall(GwtHttpClientHelper helper,
java.lang.String method,
java.lang.String requestUri,
boolean hasEntity)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
GwtHttpClientHelper |
getHelper()
Returns the HTTP client helper.
|
java.lang.String |
getReasonPhrase()
Returns the response reason phrase.
|
RequestBuilder |
getRequestBuilder()
Returns the GWT request builder.
|
java.lang.String |
getRequestEntityString()
Returns the request entity string if it exists.
|
Response |
getResponse()
Returns the GWT response.
|
java.io.InputStream |
getResponseEntityStream(long size)
Returns the response entity stream if it exists.
|
Series<Header> |
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 status code.
|
void |
sendRequest(Request request,
Response response,
Uniform onResponseCallback)
Sends the request to the client.
|
void |
setResponse(Response response)
Sets the GWT response.
|
getContentLength, getLocalAddress, getResponseEntity, isClientKeepAlive, isServerKeepAlive, shouldRequestBeChunked
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
public GwtClientCall(GwtHttpClientHelper helper, java.lang.String method, java.lang.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.public GwtHttpClientHelper getHelper()
getHelper
in class ClientCall
public java.lang.String getReasonPhrase()
getReasonPhrase
in class Call
public RequestBuilder getRequestBuilder()
public java.lang.String getRequestEntityString()
ClientCall
getRequestEntityString
in class ClientCall
public Response getResponse()
public java.io.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 java.lang.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 java.lang.Exception
ClientCall
sendRequest
in class ClientCall
request
- The high-level request.response
- The high-level response.onResponseCallback
- The callback invoked upon request completion.java.lang.Exception
public void setResponse(Response response)
response
- The GWT response.Copyright © 2005-2020 Restlet.