Examples of UsesSequenceSTR


Examples of com.sun.xml.ws.rx.rm.protocol.wsrm200702.UsesSequenceSTR

    public Packet toPacket(CreateSequenceData data, @Nullable Packet requestPacket) throws RxRuntimeException {
        Packet packet = communicator.createRequestPacket(requestPacket, new CreateSequenceElement(data), rmVersion.protocolVersion.createSequenceAction, true);

        if (data.getStrType() != null) {
            UsesSequenceSTR usesSequenceSTR = new UsesSequenceSTR();
            usesSequenceSTR.getOtherAttributes().put(communicator.soapMustUnderstandAttributeName, "true");
            packet.getMessage().getHeaders().add(Headers.create(getJaxbContext(), usesSequenceSTR));
        }

        return packet;
    }
View Full Code Here

Examples of org.apache.sandesha2.wsrm.UsesSequenceSTR

      createSeqRMMsg.setProperty(Sandesha2Constants.MessageContextProperties.SECURITY_TOKEN, token);
     
      // If we are using token based security, and the 1.1 spec level, then we
      // should introduce a UsesSequenceSTR header into the message.
      if(createSequencePart.getNamespaceValue().equals(Sandesha2Constants.SPEC_2007_02.NS_URI)) {
        UsesSequenceSTR header = new UsesSequenceSTR(null, Sandesha2Constants.SPEC_2007_02.NS_URI);
        header.toSOAPEnvelope(createSeqmsgContext.getEnvelope());
      }

      // Ensure that the correct token will be used to secure the outbound create sequence message.
      // We cannot use the normal helper method as we have not stored the token into the sequence bean yet.
      secMgr.applySecurityToken(token, createSeqRMMsg.getMessageContext());
View Full Code Here

Examples of org.apache.sandesha2.wsrm.UsesSequenceSTR

      createSeqRMMsg.setProperty(Sandesha2Constants.MessageContextProperties.SECURITY_TOKEN, token);
     
      // If we are using token based security, and the 1.1 spec level, then we
      // should introduce a UsesSequenceSTR header into the message.
      if(createSequencePart.getNamespaceValue().equals(Sandesha2Constants.SPEC_2007_02.NS_URI)) {
        UsesSequenceSTR header = new UsesSequenceSTR(null, Sandesha2Constants.SPEC_2007_02.NS_URI);
        header.toSOAPEnvelope(createSeqmsgContext.getEnvelope());
      }

      // Ensure that the correct token will be used to secure the outbound create sequence message.
      // We cannot use the normal helper method as we have not stored the token into the sequence bean yet.
      secMgr.applySecurityToken(token, createSeqRMMsg.getMessageContext());
View Full Code Here

Examples of org.apache.sandesha2.wsrm.UsesSequenceSTR

      createSeqRMMsg.setProperty(Sandesha2Constants.MessageContextProperties.SECURITY_TOKEN, token);
     
      // If we are using token based security, and the 1.1 spec level, then we
      // should introduce a UsesSequenceSTR header into the message.
      if(createSequencePart.getNamespaceValue().equals(Sandesha2Constants.SPEC_2007_02.NS_URI)) {
        UsesSequenceSTR usesSeqStr = new UsesSequenceSTR();
        usesSeqStr.toHeader(createSeqmsgContext.getEnvelope().getHeader());
      }

      // Ensure that the correct token will be used to secure the outbound create sequence message.
      // We cannot use the normal helper method as we have not stored the token into the sequence bean yet.
      secMgr.applySecurityToken(token, createSeqRMMsg.getMessageContext());
View Full Code Here

Examples of org.apache.sandesha2.wsrm.UsesSequenceSTR

      if(isSPEC2005_02 || isSPEC2007_02){
        boolean isProcessed = false;
        if(isSPEC2007_02){
          if(WSRM_COMMON.USES_SEQUENCE_STR.equals(localName)){
            usesSequenceSTR = new UsesSequenceSTR();
            usesSequenceSTR.fromHeaderBlock(element);
            isProcessed = true;
          }else if(WSRM_COMMON.MESSAGE_PENDING.equals(localName)){
            messagePending = new MessagePending();
            messagePending.fromHeaderBlock(element);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.UsesSequenceSTR

      if(isSPEC2005_02 || isSPEC2007_02){
        boolean isProcessed = false;
        if(isSPEC2007_02){
          if(WSRM_COMMON.USES_SEQUENCE_STR.equals(localName)){
            usesSequenceSTR = new UsesSequenceSTR();
            usesSequenceSTR.fromHeaderBlock(element);
            isProcessed = true;
          }else if(WSRM_COMMON.MESSAGE_PENDING.equals(localName)){
            messagePending = new MessagePending();
            messagePending.fromHeaderBlock(element);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.UsesSequenceSTR

      rmsBean.setSecurityTokenData(secManager.getTokenRecoveryData(token));
     
      // If we are using token based security, and the 1.1 spec level, then we
      // should introduce a UsesSequenceSTR header into the message.
      if(createSequencePart.getNamespaceValue().equals(Sandesha2Constants.SPEC_2006_08.NS_URI)) {
        UsesSequenceSTR header = new UsesSequenceSTR(null, Sandesha2Constants.SPEC_2006_08.NS_URI);
        header.toSOAPEnvelope(createSeqMsg.getEnvelope());
      }
    }
   
    rmsBeanMgr.insert(rmsBean);
View Full Code Here

Examples of org.apache.sandesha2.wsrm.UsesSequenceSTR

   
    if (log.isDebugEnabled())
      log.debug("Enter: UseSequenceSTRProcessor::processSequenceHeader");
   
    //mustUnderstand processing
    UsesSequenceSTR usesSequenceSTR = (UsesSequenceSTR) rmMsgContext.getMessagePart(Sandesha2Constants.MessageParts.USES_SEQUENCE_STR);
   
    if (usesSequenceSTR!=null) {
      usesSequenceSTR.setMustUnderstand(false);
      usesSequenceSTR.toSOAPEnvelope (rmMsgContext.getSOAPEnvelope());
    }
   
    if (log.isDebugEnabled())
      log.debug("Exit: UseSequenceSTRProcessor::processSequenceHeader");
  }
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.