Package com.app55

Examples of com.app55.Gateway


    return request;
  }

  public UserUpdateRequest updateUser(User user)
  {
    UserUpdateRequest request = new UserUpdateRequest(user);
    request.setGateway(this);
    return request;
  }
View Full Code Here


  private String    apiKey;
  private String    apiSecret;

  public Gateway(Environment environment, String apiKey, String apiSecret)
  {
    this(environment, apiKey, apiSecret, new DefaultHttpAdapter());
  }
View Full Code Here

  private String    apiKey;
  private String    apiSecret;

  public Gateway(Environment environment, String apiKey, String apiSecret)
  {
    this(environment, apiKey, apiSecret, new DefaultHttpAdapter());
  }
View Full Code Here

      String qs = fetchQueryString();
      byte[] data = fetchData(qs);
      String url = fetchUrl(qs);
      String authString = fetchAuthString();
     
      getGateway().getHttpAdapter().onSendRequest(data, url, getHttpMethod(), authString, new HttpListener() {

        @Override
        public void onResponse(HttpResponse response)
        {
          T r = processRequest(response);
View Full Code Here

      String qs = fetchQueryString();
      byte[] data = fetchData(qs);
      String url = fetchUrl(qs);
      String authString = fetchAuthString();

      getGateway().getHttpAdapter().onSendRequest(data, url, getHttpMethod(), authString, new HttpListener() {

        @Override
        public void onResponse(HttpResponse response)
        {
          T r = processRequest(response);
View Full Code Here

      String qs = fetchQueryString();
      byte[] data = fetchData(qs);
      String url = fetchUrl(qs);
      String authString = fetchAuthString();
     
      HttpResponse response = getGateway().getHttpAdapter().onSendRequest(data, url, getHttpMethod(), authString);
      return processRequest(response);
    }
    catch (ApiException a)
    {
      // This just gets rethrown
View Full Code Here

      String qs = fetchQueryString();
      byte[] data = fetchData(qs);
      String url = fetchUrl("");
      String authString = fetchAuthString();
     
      HttpResponse response = getGateway().getHttpAdapter().onSendRequest(data, url, getHttpMethod(), authString, headers);
      return processRequest(response);
    }
    catch (ApiException a)
    {
      // This just gets rethrown
View Full Code Here

      String qs = fetchQueryString();
      byte[] data = fetchData(qs);
      String url = fetchUrl(qs);
      String authString = fetchAuthString();

      HttpResponse response = getGateway().getHttpAdapter().onSendRequest(data, url, getHttpMethod(), authString);
      return processRequest(response);
    }
    catch (ApiException a)
    {
      // This just gets rethrown
View Full Code Here

                throw new CruiseControlException("Trouble transmitting event " + events[ j ], e);
            }
        }

        if (transmitter instanceof Gateway) {
            Gateway gateway = (Gateway) transmitter;

            try {
                LOG.debug("Wait for empty queue...");
                gateway.waitGatewayState(Transmitter.QUEUE_EMPTY);
                LOG.debug("Done");
            } catch (InterruptedException e) {
            }

            LOG.debug("Deallocating...");
            try {
                gateway.deallocate();
            } catch (GatewayException e) {
                LOG.warn("Error deallocation gateway: " + e.getMessage(), e);
            }
            LOG.debug("Done");
        }
View Full Code Here

        List<SequenceFlow> outgoing = getOutgoing(element);

        if (outgoing != null && !outgoing.isEmpty()) {
            boolean handled = false;
            if (element instanceof Gateway) {
                Gateway gateway = ((Gateway) element);
                if (gateway.getGatewayDirection() == GatewayDirection.DIVERGING) {
                   
                    handled = HandlerRegistry.getHandler(element).handle(element, manager);
                } else {
                    if (gateway instanceof ParallelGateway) {
                        handled = HandlerRegistry.getHandler(element).handle(element, manager);
View Full Code Here

TOP

Related Classes of com.app55.Gateway

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.