Examples of callApplication()


Examples of net.sf.xbus.application.Adapter.callApplication()

              // Subclasses may define their own request content.
              Object requestContent = getRequestContent();

              // call application layer
              Adapter adapter = new Adapter();
              adapter.callApplication(xbusSystem, requestContent,
                  getType());
              // check the Adapter return code
              // in case of "not success" throw new XException
              if (Constants.RC_OK.equals(adapter.getReturncode()))
              {
View Full Code Here

Examples of net.sf.xbus.application.Adapter.callApplication()

      {
        Trace.info("Receiving data from " + getAddress());

        // call application layer
        Adapter adapter = new Adapter();
        adapter.callApplication(xbusSystem, requestContent, getType());
        mReturncode = adapter.getReturncode();

        // check the Adapter return code
        // in case of "not success" throw new XException
        if (Constants.RC_OK.equals(adapter.getReturncode()))
View Full Code Here

Examples of net.sf.xbus.application.Adapter.callApplication()

        textString.append(Constants.LINE_SEPERATOR);
      }
      String requestText = textString.toString();

      Adapter adapter = new Adapter();
      adapter.callApplication(mSource, requestText, getType());
      String responseText = (String) adapter.getResponse();

      if (Constants.RC_OK.equals(adapter.getReturncode()))
      {
        TAManager.getInstance().commit();
View Full Code Here

Examples of net.sf.xbus.application.Adapter.callApplication()

      throw new XException(Constants.LOCATION_INTERN,
          Constants.LAYER_TECHNICAL,
          Constants.PACKAGE_TECHNICAL_HTTP, "0", e);
    }
    Adapter adapter = new Adapter();
    adapter.callApplication(mSource, inStream, getType());

    if (Constants.RC_OK.equals(adapter.getReturncode()))
    {
      TAManager.getInstance().commit();
View Full Code Here

Examples of net.sf.xbus.application.Adapter.callApplication()

          }
        }
      }

      Adapter adapter = new Adapter();
      adapter.callApplication(mSource, requestDoc, getType());

      Object response = adapter.getResponse();
      String responseText = null;
      if (response != null)
      {
View Full Code Here

Examples of net.sf.xbus.application.Adapter.callApplication()

        if (message != null)
        {
          Trace.info("Receiving data from " + getAddress());

          Adapter adapter = new Adapter();
          adapter.callApplication(getSource(), message, getType());

          if (Constants.RC_OK.equals(adapter.getReturncode()))
          {
            initializeErrorCounter();
            taManager.commit();
View Full Code Here

Examples of net.sf.xbus.application.Adapter.callApplication()

    {
      taManager.clearManager();
      taManager.begin();

      Adapter adapter = new Adapter();
      adapter.callApplication(source, request, getType());
      responseObject = adapter.getResponse();
      if (Constants.RC_OK.equals(adapter.getReturncode()))
      {
        taManager.commit();
        PostProcessor.start(source, responseObject,
View Full Code Here

Examples of net.sf.xbus.application.Adapter.callApplication()

        }
        else
        {
          // call application layer
          Adapter adapter = new Adapter();
          adapter.callApplication(xbusSystem, requestContent,
              getType());

          // check the Adapter return code
          // in case of not success, throw new XException
          if (Constants.RC_OK.equals(adapter.getReturncode()))
View Full Code Here

Examples of net.sf.xbus.application.Adapter.callApplication()

      taManager = TAManager.getInstance();
      taManager.clearManager();
      taManager.begin();

      Adapter adapter = new Adapter();
      adapter.callApplication(source, request, Constants.TYPE_TEXT);
      Object responseObject = adapter.getResponse();
      if (Constants.RC_OK.equals(adapter.getReturncode()))
      {
        taManager.commit();
        PostProcessor.start(source, responseObject,
View Full Code Here

Examples of net.sf.xbus.application.Adapter.callApplication()

        /*
         * Process data
         */
        Adapter adapter = new Adapter();
        adapter.callApplication(source, request, getType());
        Object responseObject = adapter.getResponse();
        if (Constants.RC_OK.equals(adapter.getReturncode()))
        {
          taManager.commit();
          PostProcessor.start(source, responseObject,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.