Package org.apache.airavata.wsmg.msgbox.util

Examples of org.apache.airavata.wsmg.msgbox.util.MsgBoxOperations


        OMElement response = null;

        try {

            String operationName = getOperationName(inMsgContext);
            MsgBoxOperations msgType = MsgBoxOperations.valueFrom(operationName);

            switch (msgType) {

            case STORE_MSGS: {
                SOAPEnvelope enlp = inMsgContext.getEnvelope();
                OMElement message = enlp.getBody().getFirstElement();
                String msgBoxId = getClientId(inMsgContext);
                String messageId = inMsgContext.getMessageID();
                String soapAction = inMsgContext.getSoapAction();
                response = skel.storeMessages(msgBoxId, messageId, soapAction, message);
                break;
            }

            case DESTROY_MSGBOX: {
                String msgBoxId = getClientId(inMsgContext);
                response = skel.destroyMsgBox(msgBoxId);
                break;
            }

            case TAKE_MSGS: {
                String msgBoxId = getClientId(inMsgContext);
                response = skel.takeMessages(msgBoxId);
                break;
            }

            case CREATE_MSGBOX: {
                response = skel.createMsgBox();
                break;
            }
            default:
                throw new AxisFault("unsupported operation" + msgType.toString());
            }

        } catch (AxisFault afe) {
            throw afe;
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.apache.airavata.wsmg.msgbox.util.MsgBoxOperations

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.