Example usage for org.springframework.web.client ResponseErrorHandler interface-usage

List of usage examples for org.springframework.web.client ResponseErrorHandler interface-usage

Introduction

In this page you can find the example usage for org.springframework.web.client ResponseErrorHandler interface-usage.

Usage

From source file com.sra.biotech.submittool.persistence.client.SubmitResponseErrorHandler.java

/**
 *
 * @author Calvin
 */
public class SubmitResponseErrorHandler implements ResponseErrorHandler {
    private static final Logger log = LoggerFactory.getLogger(SubmitResponseErrorHandler.class);

From source file com.design.perpetual.ecobeethermostat.app.handlers.TemplateErrorHandler.java

/**
 * @author MacDerson
 */
@Component
public class TemplateErrorHandler implements ResponseErrorHandler {

From source file org.intermine.app.net.ServerErrorHandler.java

public class ServerErrorHandler implements ResponseErrorHandler {
    public final static String DEFAULT_ENCODING = "UTF-8";
    public final static String ERROR_KEY = "error";

    private DefaultResponseErrorHandler mHandler;
    private Gson mMapper;

From source file org.zalando.riptide.PassThroughResponseErrorHandler.java

public final class PassThroughResponseErrorHandler implements ResponseErrorHandler {

    @Override
    public boolean hasError(final ClientHttpResponse response) {
        return false;
    }

From source file org.opentestsystem.shared.trapi.exception.TrApiResponseErrorHandler.java

/**
 * @author jmambo
 *
 */
public class TrApiResponseErrorHandler implements ResponseErrorHandler {

From source file com.sitewhere.rest.service.SiteWhereErrorHandler.java

/**
 * Uses extra information passed by SiteWhere in headers to provide more information about errors.
 * 
 * @author Derek
 */
public class SiteWhereErrorHandler implements ResponseErrorHandler {

From source file org.zalando.riptide.OAuth2CompatibilityResponseErrorHandler.java

/**
 * Special {@link ResponseErrorHandler} to be used with the <i>OAuth2RestTemplate</i>
 * 
 * Note: When using Springs OAuth2 RestTemplate an <i>OAuth2ErrorHandler</i> will be registered on the
 * {@link RestTemplate}, which wraps the actual one. This error handler may call the actual error handler
 * although it does not deem the response as an error. Snippet below shows that <i>OAuth2ErrorHandler</i>

From source file nu.yona.server.rest.RestClientErrorHandler.java

/**
 * This handler just logs any REST client errors that occur. When this handler is configured on a REST template, callers are
 * responsible for explicitly checking the error status. This enables them to fetch data that is included in the error response
 * (in the Yona case: the code and message).
 */
public class RestClientErrorHandler implements ResponseErrorHandler {

From source file org.craftercms.commons.rest.HttpMessageConvertingResponseErrorHandler.java

/**
 * {@link org.springframework.web.client.ResponseErrorHandler} that converts the body of a response with error status
 * code using {@link org.springframework.http.converter.HttpMessageConverter}s, and then throws a
 * {@link RestServiceException} with the deserialized response body as the {@code errorDetails}.
 *
 * @author avasquez

From source file fr.itldev.koya.services.impl.util.AlfrescoRestErrorHandler.java

public class AlfrescoRestErrorHandler implements ResponseErrorHandler {

    private static final Pattern ERRORCODEPATTERN = Pattern.compile("KoyaError\\s*:\\s*(\\d*)");

    private final Logger logger = Logger.getLogger(this.getClass());