public static boolean isDuplicateInOutMessage(MessageContext msgContext) { AxisOperation operation = msgContext.getAxisOperation(); String localName = operation.getName().getLocalPart(); if(localName.equals(Sandesha2Constants.RM_DUPLICATE_IN_OUT_OPERATION.getLocalPart())){ return true; } return false; }
public static boolean isDuplicateInOnlyMessage(MessageContext msgContext) { AxisOperation operation = msgContext.getAxisOperation(); String localName = operation.getName().getLocalPart(); if(localName.equals(Sandesha2Constants.RM_DUPLICATE_IN_ONLY_OPERATION.getLocalPart())){ return true; } return false; }
private static boolean isReceiverMustUnderstandProcessor(MessageContext msgContext){ MessageReceiver receiver = null; if(msgContext.isServerSide()){ receiver = msgContext.getAxisOperation().getMessageReceiver(); } return (receiver!=null && receiver.getClass().getName().endsWith("JAXWSMessageReceiver")); }
private static boolean isReceiverMustUnderstandProcessor(MessageContext msgContext){ MessageReceiver receiver = null; if(msgContext.isServerSide()){ receiver = msgContext.getAxisOperation().getMessageReceiver(); } return (receiver!=null && receiver.getClass().getName().endsWith("JAXWSMessageReceiver")); }
private String getCallBackClassName(MessageContext messageContext){ AxisOperation axisOperation = messageContext.getAxisOperation(); MessageReceiver messageReceiver = axisOperation.getMessageReceiver(); String className = null; if (messageReceiver instanceof CallbackReceiver){ CallbackReceiver callbackReceiver = (CallbackReceiver) messageReceiver; AxisCallback axisCallback = (AxisCallback) callbackReceiver.getCallbackStore().get(messageContext.getMessageID()); if (axisCallback != null){ className = axisCallback.getClass().getName(); } } return className; }
/** * Sets the axis operation to the message context. If axis operation is already set in the message context take it * from there. If not take the axis operation from axis service. * * @param msgContext messageContext message context * @param axisService axis service */ private static void setAxisOperation(MessageContext msgContext, AxisService axisService) { if (msgContext.getAxisOperation() == null && axisService != null) { AxisOperation axisOperation = findOperation(axisService, msgContext); msgContext.setAxisOperation(axisOperation); } }
/** * If addressing was found and the dispatch failed we SHOULD (and hence will) return a * WS-Addressing ActionNotSupported fault. This will make more sense once the * AddressingBasedDsipatcher is moved into the addressing module */ private void checkAction(MessageContext msgContext) throws AxisFault { if ((msgContext.getAxisService() == null) || (msgContext.getAxisOperation() == null)) { AddressingFaultsHelper .triggerActionNotSupportedFault(msgContext, msgContext.getWSAAction()); } } }
private void validateBrokerWSEventingOperation(MessageContext msgContext) { if (msgContext.getAxisOperation() == null) { AxisService service = msgContext.getAxisService(); AxisOperation pubOperation = getPublishOperation(service); msgContext.setAxisOperation(pubOperation); } }
private void validateMsgBoxStoreOperation(MessageContext msgContext) { if (msgContext.getAxisOperation() == null) { AxisService service = msgContext.getAxisService(); AxisOperation storeMsgOperation = getMessageBoxOperation(service); msgContext.setAxisOperation(storeMsgOperation); } }
private void validateBrokerWSEventingOperation(MessageContext msgContext) { if (msgContext.getAxisOperation() == null) { AxisService service = msgContext.getAxisService(); AxisOperation pubOperation = getPublishOperation(service); msgContext.setAxisOperation(pubOperation); } }
private void validateMsgBoxStoreOperation(MessageContext msgContext) { if (msgContext.getAxisOperation() == null) { AxisService service = msgContext.getAxisService(); AxisOperation storeMsgOperation = getMessageBoxOperation(service); msgContext.setAxisOperation(storeMsgOperation); } }
/** * If addressing was found and the dispatch failed we SHOULD (and hence will) return a * WS-Addressing ActionNotSupported fault. This will make more sense once the * AddressingBasedDsipatcher is moved into the addressing module */ private void checkAction(MessageContext msgContext) throws AxisFault { if ((msgContext.getAxisService() == null) || (msgContext.getAxisOperation() == null)) { AddressingFaultsHelper .triggerActionNotSupportedFault(msgContext, msgContext.getWSAAction()); } } }
private void checkAction(MessageContext msgContext) throws AxisFault { Phase addPhase = getAddressingPhase(msgContext); if (addPhase == null) { logger.error("unable to locate addressing phase object"); } if (msgContext != null) { if (msgContext.getCurrentPhaseIndex() + 1 == addPhase.getHandlerCount()) { if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) AddressingFaultsHelper.triggerActionNotSupportedFault(msgContext, msgContext.getWSAAction()); } } }
private void checkAction(MessageContext msgContext) throws AxisFault { Phase addPhase = getAddressingPhase(msgContext); if (addPhase == null) { logger.error("unable to locate addressing phase object"); } if (msgContext != null) { if (msgContext.getCurrentPhaseIndex() + 1 == addPhase.getHandlerCount()) { if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) AddressingFaultsHelper.triggerActionNotSupportedFault(msgContext, msgContext.getWSAAction()); } } }
private void checkAction(MessageContext msgContext) throws AxisFault { Phase addPhase = getAddressingPhase(msgContext); if (addPhase == null) { logger.error("unable to locate addressing phase object"); } if (msgContext != null) { if (msgContext.getCurrentPhaseIndex() + 1 == addPhase.getHandlerCount()) { if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) AddressingFaultsHelper.triggerActionNotSupportedFault(msgContext, msgContext.getWSAAction()); } } }
private void checkAction(MessageContext msgContext) throws AxisFault { Phase addPhase = getAddressingPhase(msgContext); if (addPhase == null) { logger.error("unable to locate addressing phase object"); } if (msgContext != null) { if (msgContext.getCurrentPhaseIndex() + 1 == addPhase.getHandlerCount()) { if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) AddressingFaultsHelper.triggerActionNotSupportedFault(msgContext, msgContext.getWSAAction()); } } }
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault { InvocationResponse response = InvocationResponse.CONTINUE; if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) { boolean validateAction = JavaUtils.isTrue(msgContext.getProperty(ADDRESSING_VALIDATE_ACTION), true); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(false)); response = super.invoke(msgContext); if (isForBrokerEventingService(msgContext)) validateBrokerWSEventingOperation(msgContext); if (validateAction) checkAction(msgContext); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(validateAction)); } return response; }
public org.apache.axis2.engine.Handler.InvocationResponse invoke(MessageContext msgContext) throws AxisFault { InvocationResponse response = InvocationResponse.CONTINUE; if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) { boolean validateAction = JavaUtils.isTrue(msgContext.getProperty(ADDRESSING_VALIDATE_ACTION), true); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(false)); response = super.invoke(msgContext); if (isForMessageBoxService(msgContext)) validateMsgBoxStoreOperation(msgContext); if (validateAction) checkAction(msgContext); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(validateAction)); } return response; }
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault { InvocationResponse response = InvocationResponse.CONTINUE; if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) { boolean validateAction = JavaUtils.isTrue(msgContext.getProperty(ADDRESSING_VALIDATE_ACTION), true); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(false)); response = super.invoke(msgContext); if (isForBrokerEventingService(msgContext)) validateBrokerWSEventingOperation(msgContext); if (validateAction) checkAction(msgContext); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(validateAction)); } return response; }
public org.apache.axis2.engine.Handler.InvocationResponse invoke(MessageContext msgContext) throws AxisFault { InvocationResponse response = InvocationResponse.CONTINUE; if (msgContext.getAxisService() == null || msgContext.getAxisOperation() == null) { boolean validateAction = JavaUtils.isTrue(msgContext.getProperty(ADDRESSING_VALIDATE_ACTION), true); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(false)); response = super.invoke(msgContext); if (isForMessageBoxService(msgContext)) validateMsgBoxStoreOperation(msgContext); if (validateAction) checkAction(msgContext); msgContext.setProperty(ADDRESSING_VALIDATE_ACTION, Boolean.valueOf(validateAction)); } return response; }