|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.enterprise.client.jaxrs.AbstractJaxrsProxy
public abstract class AbstractJaxrsProxy
JAX-RS proxies are RpcStub
s managed by the shared RemoteServiceProxyFactory
. The implementations of
this class are generated at compile time.
Constructor Summary | |
---|---|
AbstractJaxrsProxy()
|
Method Summary | |
---|---|
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 |
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)
Uses the configured ClientExceptionMapper to unmarshal the Response into
a Throwable . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.errai.common.client.framework.RpcStub |
---|
setErrorCallback, setRemoteCallback |
Constructor Detail |
---|
public AbstractJaxrsProxy()
Method Detail |
---|
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)
codes
- 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)
ClientExceptionMapper
to unmarshal the Response
into
a Throwable
.
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 setBatch(RpcBatch batch)
setBatch
in interface RpcStub
public boolean hasExceptionMapper()
public ClientExceptionMapper getExceptionMapper()
public void setExceptionMapper(ClientExceptionMapper exceptionMapper)
exceptionMapper
- the exceptionMapper to set
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |