Constructor and Description |
---|
AbstractJaxrsProxy() |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
If not set explicitly, the base URL is the configured default application
root path
RestClient . |
abstract ErrorCallback<?> |
getErrorCallback()
Returns the error callback used by this proxy.
|
ClientExceptionMapper |
getExceptionMapper() |
abstract RemoteCallback<?> |
getRemoteCallback()
Returns the remote callback used by this proxy.
|
List<Integer> |
getSuccessCodes()
Returns the list of success codes used by this proxy.
|
protected void |
handleError(Throwable throwable,
com.google.gwt.http.client.Request request,
com.google.gwt.http.client.Response response) |
boolean |
hasExceptionMapper() |
protected void |
sendRequest(com.google.gwt.http.client.RequestBuilder requestBuilder,
String body,
ResponseDemarshallingCallback demarshallingCallback) |
void |
setBaseUrl(String baseUrl)
Sets the base URL of the remote service and overrides the configured
default application root path.
|
void |
setBatch(RpcBatch batch) |
void |
setExceptionMapper(ClientExceptionMapper exceptionMapper) |
void |
setQualifiers(Annotation[] annos) |
void |
setRequestCallback(RemoteCallback<com.google.gwt.http.client.Request> requestCallback) |
void |
setSuccessCodes(List<Integer> successCodes)
Sets a list of HTTP status codes that will be used to determine whether a
request was successful or not.
|
protected Throwable |
unmarshallException(com.google.gwt.http.client.Response response)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setErrorCallback, setRemoteCallback
public abstract RemoteCallback<?> getRemoteCallback()
public abstract ErrorCallback<?> getErrorCallback()
public String getBaseUrl()
RestClient
.public void setBaseUrl(String baseUrl)
baseUrl
- the base URL used to contact the remote servicepublic List<Integer> getSuccessCodes()
public void setSuccessCodes(List<Integer> successCodes)
successCodes
- list of HTTP status codesprotected void sendRequest(com.google.gwt.http.client.RequestBuilder requestBuilder, String body, ResponseDemarshallingCallback demarshallingCallback)
protected Throwable unmarshallException(com.google.gwt.http.client.Response response)
response
- protected void handleError(Throwable throwable, com.google.gwt.http.client.Request request, com.google.gwt.http.client.Response response)
public void setQualifiers(Annotation[] annos)
setQualifiers
in interface RpcStub
public void setRequestCallback(RemoteCallback<com.google.gwt.http.client.Request> requestCallback)
public boolean hasExceptionMapper()
public ClientExceptionMapper getExceptionMapper()
public void setExceptionMapper(ClientExceptionMapper exceptionMapper)
exceptionMapper
- the exceptionMapper to setCopyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.