Examples of ReferenceParameters


Examples of org.apache.tuscany.sca.runtime.ReferenceParameters

     * @param msg
     * @throws TargetResolutionException
     */
    private void conversationPreinvoke(Message msg) {
        if (conversational) {
            ReferenceParameters parameters = msg.getFrom().getReferenceParameters();
            // in some cases the ConversationID that should be used comes in with the
            // message, e.g. when ws binding is in use.
            Object convID = parameters.getConversationID();
            if (convID != null) {
                conversationID = convID;
            }
            conversation = conversationManager.getConversation(conversationID);
           
            if (conversation == null || conversation.getState() == ConversationState.ENDED) {
                conversation = conversationManager.startConversation(conversationID);
                conversation.initializeConversationAttributes(wire.getTarget().getComponent());
            } else if (conversation.conversationalAttributesInitialized() == false) {
                conversation.initializeConversationAttributes(wire.getTarget().getComponent());
            } else if (conversation.isExpired()){
              throw new ConversationEndedException("Conversation has expired.");
            }
           
            conversation.updateLastReferencedTime();
   
            parameters.setConversationID(conversation.getConversationID());
        }
    }
View Full Code Here

Examples of org.opensaml.ws.wsaddressing.ReferenceParameters

*/
public class ReferenceParametersUnmarshaller extends AbstractWSAddressingObjectUnmarshaller {
   
    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        ReferenceParameters rp = (ReferenceParameters) xmlObject;
        XMLHelper.unmarshallToAttributeMap(rp.getUnknownAttributes(), attribute);
    }
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.