Package org.objectweb.celtix.ws.rm

Examples of org.objectweb.celtix.ws.rm.SequenceType


            if (null != sequenceCandidates) {
                for (int i = sequenceCandidates.size() - 1; i >= 0; i--) {
                    ResendCandidate candidate = sequenceCandidates.get(i);
                    RMProperties properties = RMContextUtils.retrieveRMProperties(candidate.getContext(),
                                                                                  true);
                    SequenceType st = properties.getSequence();
                    BigInteger m = st.getMessageNumber();
                    if (seq.isAcknowledged(m)) {
                        sequenceCandidates.remove(i);
                        candidate.resolved();
                        purged.add(m);
                    }
View Full Code Here


            }
        }
    }

    private void processSequence(RMProperties rmps, AddressingProperties maps) throws SequenceFault {
        SequenceType s = rmps.getSequence();
        if (null == s) {
            return;
        }  
        getDestination().acknowledge(s,
            null == maps.getReplyTo() ? null : maps.getReplyTo().getAddress().getValue());
View Full Code Here

    public void setSequence(SequenceType s) {
        sequence = s;
    }
   
    protected void setSequence(SourceSequence seq) {
        SequenceType s = RMUtils.getWSRMFactory().createSequenceType();
        s.setIdentifier(seq.getIdentifier());
        s.setMessageNumber(seq.getCurrentMessageNr());  
        if (seq.isLastMessage()) {
            s.setLastMessage(new SequenceType.LastMessage());
        }
        setSequence(s);
    }
View Full Code Here

                    assertEquals("Outbound message " + i + " does not contain expected message number "
                                 + expectedMessageNumbers[i], expectedMessageNumbers[i],
                                 getMessageNumber(se));
                }
            } else {
                SequenceType s = getSequence(inboundContexts.get(i));
                String messageNumber = null == s ? null : s.getMessageNumber().toString();
                if (null == expectedMessageNumbers[i]) {
                    assertNull("Inbound message " + i + " contains unexpected message number ",
                               messageNumber);
                } else {
                    assertEquals("Inbound message " + i + " does not contain expected message number "
View Full Code Here

            boolean lastMessage;
            if (outbound) {
                SOAPElement se = getSequence(outboundMessages.get(i));
                lastMessage = null == se ? false : getLastMessage(se);
            } else {
                SequenceType s = getSequence(inboundContexts.get(i));
                lastMessage = null == s ? false : null != s.getLastMessage();
            }
            assertEquals("Outbound message " + i
                         + (expectedLastMessages[i] ? " does not contain expected last message element."
                             : " contains last message element."),
                         expectedLastMessages[i], lastMessage)
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.ws.rm.SequenceType

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.