Errai 3.0.1-SNAPSHOT

org.jboss.errai.enterprise.client.jaxrs
Class AbstractJSONClientExceptionMapper

java.lang.Object
  extended by org.jboss.errai.enterprise.client.jaxrs.AbstractJSONClientExceptionMapper
All Implemented Interfaces:
ClientExceptionMapper
Direct Known Subclasses:
SecurityExceptionMapper

public abstract class AbstractJSONClientExceptionMapper
extends Object
implements ClientExceptionMapper

A simple base class for exception mappers that expect a JSON payload when unmarshalling errors.

Author:
eric.wittmann@redhat.com

Constructor Summary
AbstractJSONClientExceptionMapper()
          Constructor.
 
Method Summary
protected
<T> T
fromJSON(com.google.gwt.http.client.Response response, Class<T> type)
          Call this method to unmarshal the REST error response to a Bean of a particular type.
 
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.enterprise.client.jaxrs.ClientExceptionMapper
fromResponse
 

Constructor Detail

AbstractJSONClientExceptionMapper

public AbstractJSONClientExceptionMapper()
Constructor.

Method Detail

fromJSON

protected <T> T fromJSON(com.google.gwt.http.client.Response response,
                         Class<T> type)
Call this method to unmarshal the REST error response to a Bean of a particular type.

Parameters:
response -
type -

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.