/** * 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(); } }
/** * 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(); } }
/** * Returns true if the FaultTo address matches one of the supported * anonymous urls. If the FaultTo is not set, the ReplyTo is checked per the * spec. * * According to the WS-Addressing Metadata spec the none URI must not be rejected. * * @param messageContext * @see #isSyncReplyAllowed(org.apache.axis2.context.MessageContext) */ public static boolean isSyncFaultAllowed(MessageContext messageContext) { EndpointReference faultTo = messageContext.getFaultTo(); if (faultTo == null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " isSyncFaultAllowed: FaultTo is null. Returning isSyncReplyAllowed"); } return isSyncReplyAllowed(messageContext); } else { return faultTo.hasAnonymousAddress() || faultTo.hasNoneAddress(); } }
/** * Returns true if the FaultTo address matches one of the supported * anonymous urls. If the FaultTo is not set, the ReplyTo is checked per the * spec. * * According to the WS-Addressing Metadata spec the none URI must not be rejected. * * @param messageContext * @see #isSyncReplyAllowed(org.apache.axis2.context.MessageContext) */ public static boolean isSyncFaultAllowed(MessageContext messageContext) { EndpointReference faultTo = messageContext.getFaultTo(); if (faultTo == null) { if (LoggingControl.debugLoggingAllowed && log.isDebugEnabled()) { log.debug(messageContext.getLogIDString() + " isSyncFaultAllowed: FaultTo is null. Returning isSyncReplyAllowed"); } return isSyncReplyAllowed(messageContext); } else { return faultTo.hasAnonymousAddress() || faultTo.hasNoneAddress(); } }
else if (!isFinalAddressingNamespace && epr.hasNoneAddress()) { return; //Omit the header.
public void acknowledgeMessage(MessageContext msgContext) throws AxisFault { if (log.isDebugEnabled()) { log.debug("Acking one-way request"); } // need to skip the ACK till we get the ACK from the actual service for the out-only MEP if ((AddressingHelper.isReplyRedirected(msgContext) && !msgContext.getReplyTo().hasNoneAddress()) || (msgContext.getOperationContext() != null && WSDL2Constants.MEP_URI_IN_ONLY.equals(msgContext.getOperationContext() .getAxisOperation().getMessageExchangePattern()))) { status = RequestResponseTransportStatus.ACKED; msgContext.getOperationContext().setProperty( Constants.RESPONSE_WRITTEN, Constants.VALUE_FALSE); } }
if (!epr.hasNoneAddress()) { out = new ByteArrayOutputStream(); TransportUtils.writeMessage(msgContext, out);
if (!epr.hasNoneAddress()) { out = new ByteArrayOutputStream(); TransportUtils.writeMessage(msgContext, out);
if (!epr.hasNoneAddress()) { TransportUtils.writeMessage(msgContext, out);
if (!epr.hasNoneAddress()) { TransportUtils.writeMessage(msgContext, out);
EndpointReference responseEPR = context.getTo(); if (context.isServerSide() && responseEPR != null) { if (!responseEPR.hasAnonymousAddress() && !responseEPR.hasNoneAddress()) { URI uri = new URI(responseEPR.getAddress()); String scheme = uri.getScheme();
EndpointReference responseEPR = context.getTo(); if (context.isServerSide() && responseEPR != null) { if (!responseEPR.hasAnonymousAddress() && !responseEPR.hasNoneAddress()) { URI uri = new URI(responseEPR.getAddress()); String scheme = uri.getScheme();
&& !msgContext.getReplyTo().hasNoneAddress()) { if (!epr.hasNoneAddress()) { sendAsyncRequest(epr, msgContext); } else {
if (replyTo.hasNoneAddress()) { throw new AxisFault( replyTo.getAddress() + "" + " can not be used with OutInAxisOperationClient , user either "
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault { // is there a transport url which may be different to the WS-A To but has higher precedence String targetAddress = (String) msgContext.getProperty( Constants.Configuration.TRANSPORT_URL); if (targetAddress != null) { sendMessage(msgContext, targetAddress, null); } else if (msgContext.getTo() != null && !msgContext.getTo().hasAnonymousAddress()) { targetAddress = msgContext.getTo().getAddress(); if (!msgContext.getTo().hasNoneAddress()) { sendMessage(msgContext, targetAddress, null); } else { //Don't send the message. return InvocationResponse.CONTINUE; } } else if (msgContext.isServerSide()) { // get the out transport info for server side when target EPR is unknown sendMessage(msgContext, null, (OutTransportInfo) msgContext.getProperty(Constants.OUT_TRANSPORT_INFO)); } return InvocationResponse.CONTINUE; }
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault { String targetAddress = (String) msgContext.getProperty( Constants.Configuration.TRANSPORT_URL); if (targetAddress != null) { sendMessage(msgContext, targetAddress, null); } else if (msgContext.getTo() != null && !msgContext.getTo().hasAnonymousAddress()) { targetAddress = msgContext.getTo().getAddress(); if (!msgContext.getTo().hasNoneAddress()) { sendMessage(msgContext, targetAddress, null); } else { //Don't send the message. return InvocationResponse.CONTINUE; } } else if (msgContext.isServerSide()) { // get the out transport info for server side when target EPR is unknown sendMessage(msgContext, null, (OutTransportInfo) msgContext.getProperty(Constants.OUT_TRANSPORT_INFO)); } return InvocationResponse.CONTINUE; }
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault { // is there a transport url which may be different to the WS-A To but has higher precedence String targetAddress = (String) msgContext.getProperty( Constants.Configuration.TRANSPORT_URL); if (targetAddress != null) { sendMessage(msgContext, targetAddress, null); } else if (msgContext.getTo() != null && !msgContext.getTo().hasAnonymousAddress()) { targetAddress = msgContext.getTo().getAddress(); if (!msgContext.getTo().hasNoneAddress()) { sendMessage(msgContext, targetAddress, null); } else { //Don't send the message. return InvocationResponse.CONTINUE; } } else if (msgContext.isServerSide()) { // get the out transport info for server side when target EPR is unknown sendMessage(msgContext, null, (OutTransportInfo) msgContext.getProperty(Constants.OUT_TRANSPORT_INFO)); } return InvocationResponse.CONTINUE; }
public InvocationResponse invoke(MessageContext msgContext) throws AxisFault { String targetAddress = (String) msgContext.getProperty( Constants.Configuration.TRANSPORT_URL); if (targetAddress != null) { sendMessage(msgContext, targetAddress, null); } else if (msgContext.getTo() != null && !msgContext.getTo().hasAnonymousAddress()) { targetAddress = msgContext.getTo().getAddress(); if (!msgContext.getTo().hasNoneAddress()) { sendMessage(msgContext, targetAddress, null); } else { //Don't send the message. return InvocationResponse.CONTINUE; } } else if (msgContext.isServerSide()) { // get the out transport info for server side when target EPR is unknown sendMessage(msgContext, null, (OutTransportInfo) msgContext.getProperty(Constants.OUT_TRANSPORT_INFO)); } return InvocationResponse.CONTINUE; }
!messageContext.getReplyTo().hasNoneAddress()) { && !messageContext.getFaultTo().hasNoneAddress()) {
&& !msgContext.getReplyTo().hasNoneAddress()) { if (!epr.hasNoneAddress()) { if (msgContext.getProperty(PassThroughConstants.PASS_THROUGH_PIPE) == null) { Pipe pipe = new Pipe(targetConfiguration.getBufferFactory().getBuffer(),