Package com.betfair.baseline.v2.events

Examples of com.betfair.baseline.v2.events.BaselineJMSServiceBindingDescriptor


    @Override
    public DoubleResponse testDoubleHandling(RequestContext ctx,
                                             DoubleContainer doubleContainer, Double doubleVal, TimeConstraints timeConstraints)
            throws SimpleException {
        ctx.setRequestLogExtension(new BaselineLogExtension(doubleContainer.getMap().size(), doubleContainer.getVal(), doubleVal));
        DoubleResponse resp = new DoubleResponse();
        resp.setMap(doubleContainer.getMap());
        resp.setTopLevelVal(doubleVal);
        resp.setVal(doubleContainer.getVal());
        return resp;
    }
View Full Code Here


  }

    @Override
    public EnumHandling enumHandling(RequestContext ctx, EnumHandling bodyParameter, Boolean returnUnknown, TimeConstraints timeConstraints) throws SimpleException {
        ctx.setRequestLogExtension(new BaselineLogExtension(null, null, null));
        EnumHandling ret = new EnumHandling();
        if (returnUnknown) {
            ret.setParam1(ClientServerEnum.ServerOnly);
            ret.setParam2(EnumHandlingParam2Enum.ServerOnly);
        }
        else {
            ret.setParam1(ClientServerEnum.ClientServer);
            ret.setParam2(EnumHandlingParam2Enum.ClientServer);
        }
        return ret;
    }
View Full Code Here

      public void onResult(ExecutionResult executionResult) {
        if (executionResult.isFault()) {
          System.out.println("FAIL");
        }
        else {
          EnumOperationResponseObject response = (EnumOperationResponseObject) executionResult.getResult();
          if (response.getBodyParameter() == EnumOperationResponseObjectBodyParameterEnum.FooBarBody &&
            response.getQueryParameter() == EnumOperationResponseObjectQueryParameterEnum.BarQuery) {
            System.out.println("PASS");
          }
          else {
            System.out.println("FAIL");
          }
View Full Code Here

      EnumOperationHeaderParamEnum headerParam, EnumOperationQueryParamEnum queryParam, BodyParamEnumObject message, TimeConstraints timeConstraints)
      throws SimpleException {

    ctx.setRequestLogExtension(new BaselineLogExtension(message, null, null));

    EnumOperationResponseObject responseObject = new EnumOperationResponseObject();

    if (headerParam != null) {
      responseObject.setHeaderParameter(EnumOperationResponseObjectHeaderParameterEnum.valueOf(headerParam.toString()));
    }
    if (queryParam != null) {
      responseObject.setQueryParameter(EnumOperationResponseObjectQueryParameterEnum.valueOf(queryParam.toString()));
    }
    if (message != null && message.getBodyParameter() != null) {
      responseObject.setBodyParameter(EnumOperationResponseObjectBodyParameterEnum.valueOf(message.getBodyParameter().toString()));
    }

    return responseObject;
  }
View Full Code Here

  public EnumSimpleResponseObject enumSimpleOperation(RequestContext ctx, SimpleEnum headerParam, SimpleEnum queryParam, EnumSimpleRequestObject message, TimeConstraints timeConstraints) throws SimpleException {
   
    ctx.setRequestLogExtension(new BaselineLogExtension(message, null, null));


    EnumSimpleResponseObject response = new EnumSimpleResponseObject();

    response.setBodyParameter(message.getBodyParameter());
    response.setHeaderParameter(headerParam);
    response.setQueryParameter(queryParam);

    return response;

  }
View Full Code Here

  public FloatOperationResponseObject floatOperation(RequestContext ctx, Float headerParam, Float queryParam,
      BodyParamFloatObject message, TimeConstraints timeConstraints) throws SimpleException {

    ctx.setRequestLogExtension(new BaselineLogExtension(message, null, null));

    FloatOperationResponseObject returnObject = new FloatOperationResponseObject();

    returnObject.setBodyParameter(message.getBodyParameter());
    returnObject.setHeaderParameter(headerParam);
    returnObject.setQueryParameter(queryParam);

    return returnObject;

  }
View Full Code Here

  public I32OperationResponseObject i32Operation(RequestContext ctx, Integer headerParam, Integer queryParam,
      BodyParamI32Object message, TimeConstraints timeConstraints) throws SimpleException {

    ctx.setRequestLogExtension(new BaselineLogExtension(message, null, null));

    I32OperationResponseObject returnObject = new I32OperationResponseObject();

    returnObject.setBodyParameter(message.getBodyParameter());
    returnObject.setHeaderParameter(headerParam);
    returnObject.setQueryParameter(queryParam);

    return returnObject;
  }
View Full Code Here

  public I32SimpleOperationResponseObject i32SimpleTypeOperation(RequestContext ctx, Integer headerParam, Integer queryParam, I32SimpleTypeRequestObject message, TimeConstraints timeConstraints) throws SimpleException {
   
    ctx.setRequestLogExtension(new BaselineLogExtension(message, null, null));


    I32SimpleOperationResponseObject response = new I32SimpleOperationResponseObject();

    response.setBodyParameter(message.getBodyParameter());
    response.setHeaderParameter(headerParam);
    response.setQueryParameter(queryParam);

    return response;
  }
View Full Code Here

  public I64OperationResponseObject i64Operation(RequestContext ctx, Long headerParam, Long queryParam,
      BodyParamI64Object message, TimeConstraints timeConstraints) throws SimpleException {

    ctx.setRequestLogExtension(new BaselineLogExtension(message, null, null));

    I64OperationResponseObject returnObject = new I64OperationResponseObject();

    returnObject.setBodyParameter(message.getBodyParameter());
    returnObject.setHeaderParameter(headerParam);
    returnObject.setQueryParameter(queryParam);

    return returnObject;
  }
View Full Code Here

            return null;
        }
        IdentChain result = new IdentChain();
        result.setIdentities(new ArrayList<Ident>());
        for (Identity i: ctx.getIdentity().getIdentities()) {
            Ident ident = new Ident();
            ident.setPrincipal(i.getPrincipal().getName());
            ident.setCredentialName(i.getCredential().getName());
            ident.setCredentialValue((String)i.getCredential().getValue());
            result.getIdentities().add(ident);
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of com.betfair.baseline.v2.events.BaselineJMSServiceBindingDescriptor

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.