public String toString() { return getLogIDString(); }
public String toString() { return getLogIDString(); }
public AxisMessage getAxisMessage() { if (reconcileAxisMessage) { if (DEBUG_ENABLED && log.isWarnEnabled()) { log.warn(this.getLogIDString() + ":getAxisMessage(): ****WARNING**** MessageContext.activate(configurationContext) needs to be invoked."); } } return axisMessage; }
public AxisService findService(MessageContext messageContext) throws AxisFault { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " Checking for Service using SOAPAction is a TODO item"); } return null; }
public AxisMessage getAxisMessage() { if (reconcileAxisMessage) { if (DEBUG_ENABLED && log.isWarnEnabled()) { log.warn(this.getLogIDString() + ":getAxisMessage(): ****WARNING**** MessageContext.activate(configurationContext) needs to be invoked."); } } return axisMessage; }
public AxisService findService(MessageContext messageContext) throws AxisFault { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " Checking for Service using SOAPAction is a TODO item"); } return null; }
/** * Trace a warning message, if needed, indicating that this * object needs to be activated before accessing certain fields. * * @param methodname The method where the warning occurs */ private void checkActivateWarning(String methodname) { if (needsToBeReconciled) { if (DEBUG_ENABLED && log.isWarnEnabled()) { log.warn(getLogIDString() + ":" + methodname + "(): ****WARNING**** " + myClassName + ".activate(configurationContext) needs to be invoked."); } } }
/** * Trace a warning message, if needed, indicating that this * object needs to be activated before accessing certain fields. * * @param methodname The method where the warning occurs */ private void checkActivateWarning(String methodname) { if (needsToBeReconciled) { if (DEBUG_ENABLED && log.isWarnEnabled()) { log.warn(getLogIDString() + ":" + methodname + "(): ****WARNING**** " + myClassName + ".activate(configurationContext) needs to be invoked."); } } }
private InvocationResponse invokeHandler(Handler handler, MessageContext msgctx) throws AxisFault { if (isDebugEnabled) { log.debug(msgctx.getLogIDString() + " Invoking Handler '" + handler.getName() + "' in Phase '" + phaseName + "'"); } return handler.invoke(msgctx); }
private InvocationResponse invokeHandler(Handler handler, MessageContext msgctx) throws AxisFault { if (isDebugEnabled) { log.debug(msgctx.getLogIDString() + " Invoking Handler '" + handler.getName() + "' in Phase '" + phaseName + "'"); } return handler.invoke(msgctx); }
/** * Returns true if the ReplyTo address does not match one of the supported * anonymous urls. If the ReplyTo is not set, anonymous is assumed, per the Final * spec. The AddressingInHandler should have set the ReplyTo to non-null in the * 2004/08 case to ensure the different semantics. (per AXIS2-885) * * @param messageContext */ public static boolean isReplyRedirected(MessageContext messageContext) { EndpointReference replyTo = messageContext.getReplyTo(); if (replyTo == null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " isReplyRedirected: ReplyTo is null. Returning false"); } return false; } else { return !replyTo.hasAnonymousAddress(); } }
public AxisOperation findOperation(AxisService service, MessageContext messageContext) throws AxisFault { RelatesTo relatesTo = messageContext.getRelatesTo(); if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " Checking for OperationContext using RelatesTo : " + relatesTo); } if ((relatesTo != null) && (relatesTo.getValue() != null)) { ConfigurationContext configurationContext = messageContext.getConfigurationContext(); OperationContext operationContext = configurationContext.getOperationContext(relatesTo.getValue()); if (operationContext != null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " Found OperationContext: " + operationContext); } return operationContext.getAxisOperation(); } } return null; }
/** * Returns true if the FaultTo address does not match one of the supported * anonymous urls. If the FaultTo is not set, the ReplyTo is checked per the * spec. * * @param messageContext * @see #isReplyRedirected(org.apache.axis2.context.MessageContext) */ public static boolean isFaultRedirected(MessageContext messageContext) { EndpointReference faultTo = messageContext.getFaultTo(); if (faultTo == null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " isFaultRedirected: FaultTo is null. Returning isReplyRedirected"); } return isReplyRedirected(messageContext); } else { return !faultTo.hasAnonymousAddress(); } }
public AxisOperation findOperation(AxisService service, MessageContext messageContext) throws AxisFault { RelatesTo relatesTo = messageContext.getRelatesTo(); if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " Checking for OperationContext using RelatesTo : " + relatesTo); } if ((relatesTo != null) && (relatesTo.getValue() != null)) { ConfigurationContext configurationContext = messageContext.getConfigurationContext(); OperationContext operationContext = configurationContext.getOperationContext(relatesTo.getValue()); if (operationContext != null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " Found OperationContext: " + operationContext); } return operationContext.getAxisOperation(); } } return null; }
/** * Returns true if the ReplyTo address matches one of the supported * anonymous urls. If the ReplyTo is not set, anonymous is assumed, per the Final * spec. The AddressingInHandler should have set the ReplyTo to non-null in the * 2004/08 case to ensure the different semantics. (per AXIS2-885) * * According to the WS-Addressing Metadata spec the none URI must not be rejected. * * @param messageContext */ public static boolean isSyncReplyAllowed(MessageContext messageContext) { EndpointReference replyTo = messageContext.getReplyTo(); if (replyTo == null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " isSyncReplyAllowed: ReplyTo is null. Returning true"); } return true; } else { return replyTo.hasAnonymousAddress() || replyTo.hasNoneAddress(); } }
public AxisService findService(MessageContext messageContext) throws AxisFault { RelatesTo relatesTo = messageContext.getRelatesTo(); if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " Checking for OperationContext using RelatesTo : " + relatesTo); } if ((relatesTo != null) && (relatesTo.getValue() != null)) { ConfigurationContext configurationContext = messageContext.getConfigurationContext(); OperationContext operationContext = configurationContext.getOperationContext(relatesTo.getValue()); if (operationContext != null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " Found OperationContext: " + operationContext); } return operationContext.getServiceContext().getAxisService(); } } return null; }
/** * @param msgctx * @throws org.apache.axis2.AxisFault */ public InvocationResponse invoke(MessageContext msgctx) throws AxisFault { AxisService axisService = msgctx.getAxisService(); if (axisService == null) { axisService = findService(msgctx); if (axisService != null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(msgctx.getLogIDString() + " " + Messages.getMessage("servicefound", axisService.getName())); } msgctx.setAxisService(axisService); } } return InvocationResponse.CONTINUE; } }
/** * Resume processing of a message. * * @param msgctx * @return An InvocationResponse allowing the invoker to perhaps determine * whether or not the message processing will ever succeed. * @throws AxisFault */ public static InvocationResponse resume(MessageContext msgctx) throws AxisFault { if (LoggingControl.debugLoggingAllowed && log.isTraceEnabled()) { log.trace(msgctx.getLogIDString() + " resume:" + msgctx.getMessageID()); } msgctx.setPaused(false); if (msgctx.getFLOW() == MessageContext.IN_FLOW) { return resumeReceive(msgctx); } else { return resumeSend(msgctx); } }
/** * @param msgctx * @throws org.apache.axis2.AxisFault */ public InvocationResponse invoke(MessageContext msgctx) throws AxisFault { AxisService axisService = msgctx.getAxisService(); if (axisService == null) { axisService = findService(msgctx); if (axisService != null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(msgctx.getLogIDString() + " " + Messages.getMessage("servicefound", axisService.getName())); } msgctx.setAxisService(axisService); } } return InvocationResponse.CONTINUE; } }
/** * @param msgctx * @throws org.apache.axis2.AxisFault */ public InvocationResponse invoke(MessageContext msgctx) throws AxisFault { if ((msgctx.getAxisService() != null) && (msgctx.getAxisOperation() == null)) { AxisOperation axisOperation = findOperation(msgctx.getAxisService(), msgctx); if (axisOperation != null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(msgctx.getLogIDString() + " " + Messages.getMessage("operationfound", axisOperation .getName().getLocalPart())); } msgctx.setAxisOperation(axisOperation); //setting axisMessage into messageContext msgctx.setAxisMessage(axisOperation.getMessage( WSDLConstants.MESSAGE_LABEL_IN_VALUE)); } } return InvocationResponse.CONTINUE; } }