Package org.apache.sandesha2.wsrm

Examples of org.apache.sandesha2.wsrm.Identifier


    // -------------------------------
    String rmNamespaceValue = SpecSpecificConstants.getRMNamespaceValue(Sandesha2Constants.SPEC_VERSIONS.v1_1);

    Sequence sequence = new Sequence(rmNamespaceValue);
    sequence.setMessageNumber(1);
    Identifier id1 = new Identifier(rmNamespaceValue);
    id1.setIndentifer(uuid);
    sequence.setIdentifier(id1);
    applicationRMMsg.setSequence(sequence);
    applicationRMMsg.addSOAPEnvelope();

    // --------------------------------------------
View Full Code Here


    // Generate the Close field.
    // -------------------------------
    String rmNamespaceValue = SpecSpecificConstants.getRMNamespaceValue(Sandesha2Constants.SPEC_VERSIONS.v1_1);

    CloseSequence sequence = new CloseSequence(rmNamespaceValue);
    Identifier id1 = new Identifier(rmNamespaceValue);
    id1.setIndentifer(uuid);
    sequence.setIdentifier(id1);
    applicationRMMsg.setCloseSequence(sequence);
    LastMessageNumber lastMsgNumber = new LastMessageNumber(rmNamespaceValue);
    lastMsgNumber.setMessageNumber(1);
    sequence.setLastMessageNumber(lastMsgNumber);
View Full Code Here

    // Generate the Close field.
    // -------------------------------
    String rmNamespaceValue = SpecSpecificConstants.getRMNamespaceValue(Sandesha2Constants.SPEC_VERSIONS.v1_1);

    AckRequested sequence = new AckRequested(rmNamespaceValue);
    Identifier id1 = new Identifier(rmNamespaceValue);
    id1.setIndentifer(uuid);
    sequence.setIdentifier(id1);
    applicationRMMsg.addAckRequested(sequence);
    applicationRMMsg.addSOAPEnvelope();

    // --------------------------------------------
View Full Code Here

    }

    String rmNamespaceValue = SpecSpecificConstants.getRMNamespaceValue(rmSpecVersion);

    AckRequested ackRequested = new AckRequested(rmNamespaceValue);
    Identifier identifier = new Identifier(rmNamespaceValue);
    identifier.setIndentifer(sequenceID);
    ackRequested.setIdentifier(identifier);

    ackRequested.toHeader(dummyEnvelope.getHeader());

    return dummyEnvelope;
View Full Code Here

      }

      String rmNamespaceValue = SpecSpecificConstants.getRMNamespaceValue(rmSpecVersion);

      CloseSequence closeSequence = new CloseSequence(rmNamespaceValue);
      Identifier identifier = new Identifier(rmNamespaceValue);
      identifier.setIndentifer(sequenceID);
      closeSequence.setIdentifier(identifier);
      if(closeSequence.isLastMsgNumberRequired(rmNamespaceValue)){
        LastMessageNumber lastMsgNumber = new LastMessageNumber(rmNamespaceValue);
        lastMsgNumber.setMessageNumber(SandeshaUtil.getLastMessageNumber(internalSequenceID, storageManager));
        closeSequence.setLastMessageNumber(lastMsgNumber);
View Full Code Here

      dummyEnvelope = factory.getDefaultEnvelope();
    }

    String rmNamespaceValue = SpecSpecificConstants.getRMNamespaceValue(rmSpecVersion);
    TerminateSequence terminateSequence = new TerminateSequence(rmNamespaceValue);
    Identifier identifier = new Identifier(rmNamespaceValue);
    identifier.setIndentifer(sequenceID);
    terminateSequence.setIdentifier(identifier);
    if(TerminateSequence.isLastMsgNumberRequired(rmNamespaceValue)){
      try
      {
        transaction = storageManager.getTransaction();
View Full Code Here

    if (operationcontext != null) {
      String offeredSequence = (String) applicationMsgContext
          .getProperty(Sandesha2ClientAPI.OFFERED_SEQUENCE_ID);
      if (offeredSequence != null && !"".equals(offeredSequence)) {
        SequenceOffer offerPart = new SequenceOffer(factory);
        Identifier identifier = new Identifier(factory);
        identifier.setIndentifer(offeredSequence);
        offerPart.setIdentifier(identifier);
        createSequencePart.setSequenceOffer(offerPart);
      }
    }
View Full Code Here

    SOAPEnvelope envelope = factory.getDefaultEnvelope();
    terminateRMMessage.setSOAPEnvelop(envelope);

    TerminateSequence terminateSequencePart = new TerminateSequence(factory);
    Identifier identifier = new Identifier(factory);
    identifier.setIndentifer(sequenceId);
    terminateSequencePart.setIdentifier(identifier);
    terminateRMMessage.setMessagePart(Sandesha2Constants.MessageParts.TERMINATE_SEQ,
        terminateSequencePart);

    return terminateRMMessage;
View Full Code Here

        .getMessagePart(Sandesha2Constants.MessageParts.CREATE_SEQ);
    CreateSequence cs = (CreateSequence) messagePart;

    CreateSequenceResponse response = new CreateSequenceResponse(factory);

    Identifier identifier = new Identifier(factory);
    identifier.setIndentifer(newSequenceID);

    response.setIdentifier(identifier);

    SequenceOffer offer = cs.getSequenceOffer();
    if (offer != null) {
View Full Code Here

    }
    envelope = applicationMsg.getSOAPEnvelope();

    SequenceAcknowledgement sequenceAck = new SequenceAcknowledgement(
        factory);
    Identifier id = new Identifier(factory);
    id.setIndentifer(sequenceId);
    sequenceAck.setIdentifier(id);

    ConfigurationContext ctx = applicationMsg.getMessageContext()
        .getConfigurationContext();
    StorageManager storageManager = SandeshaUtil
View Full Code Here

TOP

Related Classes of org.apache.sandesha2.wsrm.Identifier

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.