Examples of TerminateSequenceType


Examples of org.apache.cxf.ws.rm.v200702.TerminateSequenceType

        final ProtocolVariation protocol = ss.getProtocol();
        RMConstants constants = protocol.getConstants();
        OperationInfo oi = reliableEndpoint.getEndpoint(protocol).getEndpointInfo()
            .getService().getInterface().getOperation(constants.getTerminateSequenceOperationName());
       
        TerminateSequenceType ts = new TerminateSequenceType();
        ts.setIdentifier(ss.getIdentifier());
        EncoderDecoder codec = protocol.getCodec();
        invoke(oi, protocol, new Object[] {codec.convertToSend(ts)}, null);
    }
View Full Code Here

Examples of org.apache.cxf.ws.rm.v200702.TerminateSequenceType

    public void terminateSequence(Message message) {
        LOG.fine("Terminating sequence");
        final ProtocolVariation protocol = RMContextUtils.getProtocolVariation(message);
       
        EncoderDecoder codec = protocol.getCodec();
        TerminateSequenceType terminate = codec.convertReceivedTerminateSequence(getParameter(message));
       
        // check if the terminated sequence was created in response to a a createSequence
        // request
       
        Destination destination = reliableEndpoint.getDestination();
        Identifier sid = terminate.getIdentifier();
        DestinationSequence terminatedSeq = destination.getSequence(sid);
        if (null == terminatedSeq) {
            //  TODO
            LOG.severe("No such sequence.");
            return;
View Full Code Here

Examples of org.apache.cxf.ws.rm.v200702.TerminateSequenceType

        return action.equals(inAction);
    }
   
    private void setTerminateSequence(Message msg, Identifier identifier, ProtocolVariation protocol)
        throws RMException {
        TerminateSequenceType ts = new TerminateSequenceType();
        ts.setIdentifier(identifier);
        MessageContentsList contents =
            new MessageContentsList(new Object[]{protocol.getCodec().convertToSend(ts)});
        msg.setContent(List.class, contents);

        // create a new exchange for this output-only exchange
View Full Code Here

Examples of org.apache.cxf.ws.rm.v200702.TerminateSequenceType

        return action.equals(inAction);
    }
   
    private void setTerminateSequence(Message msg, Identifier identifier, ProtocolVariation protocol)
        throws RMException {
        TerminateSequenceType ts = new TerminateSequenceType();
        ts.setIdentifier(identifier);
        MessageContentsList contents =
            new MessageContentsList(new Object[]{protocol.getCodec().convertToSend(ts)});
        msg.setContent(List.class, contents);

        // create a new exchange for this output-only exchange
View Full Code Here

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

       
        assertNotNull(TerminateSequenceRequest.createDataBindingCallback());
       
        Object[] params = req.getObjectMessageContext().getMessageObjects();
        assertEquals(1, params.length);
        TerminateSequenceType ts = (TerminateSequenceType)params[0];
       
        assertEquals(sid, ts.getIdentifier());
     
        EasyMock.verify(source);
        EasyMock.verify(binding);
    }
View Full Code Here

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

            getBinding().getBus().getWorkQueueManager().getAutomaticWorkQueue().execute(response);
   
            return;
        } else if (RMUtils.getRMConstants().getTerminateSequenceAction().equals(action)) {
            Object[] parameters = (Object[])context.get(ObjectMessageContext.METHOD_PARAMETERS);
            TerminateSequenceType cs = (TerminateSequenceType)parameters[0];

            getServant().terminateSequence(getDestination(), cs.getIdentifier());
        }
       
        // for application AND out of band messages

        if (null != rmps) {           
View Full Code Here

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

        return new JAXBDataBindingCallback(method, DataBindingCallback.Mode.PARTS, null);
    }
   
    private void setMessageParameters(AbstractSequenceImpl seq) {
       
        TerminateSequenceType ts = RMUtils.getWSRMFactory().createTerminateSequenceType();
        ts.setIdentifier(seq.getIdentifier());
       
        getObjectMessageContext().setMessageObjects(new Object[] {ts});
    }
View Full Code Here

Examples of org.servicemix.ws.xmlbeans.rm.TerminateSequenceType

    private int convertToLocalTime(Expires expires) {
        return 0;
    }

    public void terminateSequence(TerminateSequenceDocument requestDoc) {
        TerminateSequenceType terminateSequence = requestDoc.getTerminateSequence();
        String identifier = terminateSequence.getIdentifier().getStringValue();
        sequenceStore.delete(identifier);
    }
View Full Code Here

Examples of org.xmlsoap.schemas.ws._2005._02.rm.TerminateSequenceType

        assertNotNull("Should have an identifier", value);
       
        System.out.println("Created identifier: " + value);
        System.out.println("Accept: " + response.getAccept());
       
        TerminateSequenceType terminateArgs = new TerminateSequenceType();
        terminateArgs.setIdentifier(identifier);
        sequenceManager.terminateSequence(terminateArgs);
    }
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.