Package com.betfair.cougar.api

Examples of com.betfair.cougar.api.ResponseCode


        super(faultUnMarshaller);
    }

    public Exception convert(final InputStream inputStream, final ExceptionFactory exceptionFactory, final int httpStatusCode) {
        CougarFault fault = getFaultFromInputStream(inputStream);
        ResponseCode responseCode = ResponseCodeMapper.getResponseCodeFromHttpCode(httpStatusCode, fault);
        return exceptionFactory.parseException(responseCode, fault.getErrorCode(),
                fault.getFaultCode() + " fault received from remote server: "+ ServerFaultCode.getByDetailCode(fault.getErrorCode()), fault.getDetail().getFaultMessages());
  }
View Full Code Here


        super(faultUnMarshaller);
    }

    public Exception convert(final InputStream inputStream, final ExceptionFactory exceptionFactory, final int httpStatusCode) {
        CougarFault fault = getFaultFromInputStream(inputStream);
        ResponseCode responseCode = ResponseCodeMapper.getResponseCodeFromHttpCode(httpStatusCode, fault);
        return exceptionFactory.parseException(responseCode, fault.getErrorCode(),
                fault.getFaultCode() + " fault received from remote server: "+ ServerFaultCode.getByDetailCode(fault.getErrorCode()), fault.getDetail().getFaultMessages());
  }
View Full Code Here

    @KPITimedEvent(value = "Baseline.service.testException", catchFailures = true)
    @Override
    public SimpleResponse testException(RequestContext ctx, String responseCode, String message, TimeConstraints timeConstraints) throws SimpleException, WotsitException {
        ctx.trace("Starting exception thrower with message %s", message);
        ResponseCode response;
        try {
            response = ResponseCode.valueOf(responseCode);
        }
        catch (IllegalArgumentException e) {
            response = ResponseCode.InternalError;
View Full Code Here

    @KPITimedEvent(value = "Baseline.service.testException", catchFailures = true)
    @Override
    public SimpleResponse testException(RequestContext ctx, String responseCode, String message, TimeConstraints timeConstraints) throws SimpleException, WotsitException {
        ctx.trace("Starting exception thrower with message %s", message);
        ResponseCode response;
        try {
            response = ResponseCode.valueOf(responseCode);
        }
        catch (IllegalArgumentException e) {
            response = ResponseCode.InternalError;
View Full Code Here

    baseRequest.setHandled(true);
        final RequestTimer timer = new RequestTimer();
        response.setHeader("Server", VERSION_HEADER);

        long bytesWritten = 0;
        ResponseCode responseCode = ResponseCode.Ok;
    if (IS_STATIC_CONTENT_PATH.matcher(target).matches()) {
      try {
        InputStream rawStream = getClass().getResourceAsStream(target);
        if (rawStream != null) {
                    logger.log(Level.FINE, "Static content stream found for path %s", target);
View Full Code Here

TOP

Related Classes of com.betfair.cougar.api.ResponseCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.