Package org.apache.sandesha2.wsrm

Examples of org.apache.sandesha2.wsrm.AckRequested


   
    // 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();

    // --------------------------------------------
    // Finished generating Close part
View Full Code Here


      for (Iterator<SequenceAcknowledgement> iter=sequenceAcknowledgements.iterator();iter.hasNext();) {
        SequenceAcknowledgement sequenceAck = (SequenceAcknowledgement) iter.next();
        sequenceAck.toHeader(header);
      }
      for (Iterator<AckRequested> iter=ackRequests.iterator();iter.hasNext();) {
        AckRequested ackReq = (AckRequested) iter.next();
        ackReq.toHeader(header);
      }
      if(sequenceFault != null){
        sequenceFault.toHeader(header);
      }
      if(usesSequenceSTR != null){
View Full Code Here

          }else if(WSRM_COMMON.SEQUENCE_ACK.equals(localName)){
            SequenceAcknowledgement sequenceAcknowledgement = new SequenceAcknowledgement(namespace, false);
            sequenceAcknowledgement.fromHeaderBlock(element);
            sequenceAcknowledgements.add(sequenceAcknowledgement);
          }else if(WSRM_COMMON.ACK_REQUESTED.equals(localName)){
            AckRequested ackRequest = new AckRequested(namespace);
            ackRequest.fromHeaderBlock(element);
            ackRequests.add(ackRequest);
          }else if(WSRM_COMMON.SEQUENCE_FAULT.equals(localName)){
            sequenceFault = new SequenceFault(namespace);
            sequenceFault.fromHeaderBlock(element);
         
View Full Code Here

      dummyEnvelope = factory.getDefaultEnvelope();
    }

    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

      for (Iterator<SequenceAcknowledgement> iter=sequenceAcknowledgements.iterator();iter.hasNext();) {
        SequenceAcknowledgement sequenceAck = (SequenceAcknowledgement) iter.next();
        sequenceAck.toHeader(header);
      }
      for (Iterator<AckRequested> iter=ackRequests.iterator();iter.hasNext();) {
        AckRequested ackReq = (AckRequested) iter.next();
        ackReq.toHeader(header);
      }
      if(sequenceFault != null){
        sequenceFault.toHeader(header);
      }
      if(usesSequenceSTR != null){
View Full Code Here

          }else if(WSRM_COMMON.SEQUENCE_ACK.equals(localName)){
            SequenceAcknowledgement sequenceAcknowledgement = new SequenceAcknowledgement(namespace, false);
            sequenceAcknowledgement.fromHeaderBlock(element);
            sequenceAcknowledgements.add(sequenceAcknowledgement);
          }else if(WSRM_COMMON.ACK_REQUESTED.equals(localName)){
            AckRequested ackRequest = new AckRequested(namespace);
            ackRequest.fromHeaderBlock(element);
            ackRequests.add(ackRequest);
          }else if(WSRM_COMMON.SEQUENCE_FAULT.equals(localName)){
            sequenceFault = new SequenceFault(namespace);
            sequenceFault.fromHeaderBlock(element);
         
View Full Code Here

    ConfigurationContext configCtx = rmMsgCtx.getMessageContext()
        .getConfigurationContext();
    if (configCtx == null)
      throw new SandeshaException("Configuration Context is null");

    AckRequested ackRequested = (AckRequested) rmMsgCtx
        .getMessagePart(Sandesha2Constants.MessageParts.ACK_REQUEST);
    LastMessage lastMessage = (LastMessage) sequence.getLastMessage();

    //Setting the ack depending on AcksTo.
    SequencePropertyBean acksToBean = seqPropMgr.retrieve(sequenceId,
View Full Code Here

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

      sequencePart.setIdentifier(identifier);

      AckRequested ackRequestedPart = (AckRequested) applicaionRMMsg
          .getMessagePart(Sandesha2Constants.MessageParts.ACK_REQUEST);
      if (ackRequestedPart != null) {
        Identifier id1 = new Identifier(factory);
        id1.setIndentifer(newOutSequenceId);
        ackRequestedPart.setIdentifier(id1);
      }

      try {
        applicaionRMMsg.addSOAPEnvelope();
      } catch (AxisFault e) {
View Full Code Here

          sequencePropertyMgr.insert(lastOutMsgBean);
        }
      }
    }

    AckRequested ackRequested = null;

    boolean addAckRequested = false;
    if (!lastMessage)
      addAckRequested = true;

    //setting the Sequnece id.
    //Set send = true/false depending on the availability of the out
    // sequence id.
    String identifierStr = null;
    if (outSequenceBean == null || outSequenceBean.getValue() == null) {
      identifierStr = Sandesha2Constants.TEMP_SEQUENCE_ID;

    } else {
      identifierStr = (String) outSequenceBean.getValue();
    }

    Identifier id1 = new Identifier(factory);
    id1.setIndentifer(identifierStr);
    sequence.setIdentifier(id1);
    rmMsg.setMessagePart(Sandesha2Constants.MessageParts.SEQUENCE, sequence);

    if (addAckRequested) {
      ackRequested = new AckRequested(factory);
      Identifier id2 = new Identifier(factory);
      id2.setIndentifer(identifierStr);
      ackRequested.setIdentifier(id2);
      rmMsg.setMessagePart(Sandesha2Constants.MessageParts.ACK_REQUEST,
          ackRequested);
    }

    try {
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.setMessagePart(Sandesha2Constants.MessageParts.CLOSE_SEQUENCE, sequence);
    applicationRMMsg.addSOAPEnvelope();

    // --------------------------------------------
    // Finished generating Close part
View Full Code Here

TOP

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

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.