Package org.serviceconnector.scmp

Examples of org.serviceconnector.scmp.SCMPCompositeSender


        return;
      }

      if (command.isPassThroughPartMsg() == false) {
        // large messages needs to be handled
        SCMPCompositeSender largeResponse = NettyResponderRequestHandlerTask.compositeRegistry
            .getSCMPLargeResponse(sessionId);

        if (largeResponse != null && scmpReq.isPart()) {
          // sending of a large response has already been started and incoming scmp is a pull request
          if (largeResponse.hasNext()) {
            // there are still parts to send to complete request
            SCMPMessage nextSCMP = largeResponse.getNext();
            // handling msgSequenceNr
            msgSequenceNr.incrementAndGetMsgSequenceNr();
            nextSCMP.setHeader(SCMPHeaderAttributeKey.MESSAGE_SEQUENCE_NR, msgSequenceNr.getCurrentNr());
            response.setSCMP(nextSCMP);
            response.write();
View Full Code Here


    SCMPMessage scmpRequest = request.getMessage();
    String sessionId = scmpRequest.getSessionId();
    SCMPMessageSequenceNr msgSequenceNr = NettyResponderRequestHandlerTask.compositeRegistry.getSCMPMsgSequenceNr(sessionId);
    if (response.isLarge() && AppContext.isScEnvironment() == false) {
      // response is large & not on SC, create a large response for reply
      SCMPCompositeSender largeResponse = new SCMPCompositeSender(response.getSCMP());
      SCMPMessage firstSCMP = largeResponse.getFirst();
      response.setSCMP(firstSCMP);
      if (SCMPMessageSequenceNr.necessaryToWrite(firstSCMP.getMessageType())) {
        // no incrementation necessary - already done inside commands
        firstSCMP.setHeader(SCMPHeaderAttributeKey.MESSAGE_SEQUENCE_NR, msgSequenceNr.getCurrentNr());
      }
View Full Code Here

TOP

Related Classes of org.serviceconnector.scmp.SCMPCompositeSender

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.