public class ErrorHandler extends Object implements ResponseHandler
| Modifier and Type | Field and Description | 
|---|---|
static Specification<org.restlet.Response> | 
AUTHENTICATION_REQUIRED  | 
static Specification<org.restlet.Response> | 
RECOVERABLE_ERROR  | 
| Constructor and Description | 
|---|
ErrorHandler()  | 
| Modifier and Type | Method and Description | 
|---|---|
HandlerCommand | 
handleResponse(org.restlet.Response response,
              ContextResourceClient client)  | 
ErrorHandler | 
onError(ResponseHandler handler)  | 
ErrorHandler | 
onError(Specification<org.restlet.Response> responseSpecification,
       ResponseHandler handler)  | 
public static Specification<org.restlet.Response> AUTHENTICATION_REQUIRED
public static Specification<org.restlet.Response> RECOVERABLE_ERROR
public ErrorHandler onError(Specification<org.restlet.Response> responseSpecification, ResponseHandler handler)
public ErrorHandler onError(ResponseHandler handler)
public HandlerCommand handleResponse(org.restlet.Response response, ContextResourceClient client)
handleResponse in interface ResponseHandler