/** * Determines whether the default processing for this event will be executed. By * default, the Mule server will route events according to a components * configuration. The user can override this behaviour by obtaining a reference * to the MuleEvent context, either by implementing * <code>org.mule.api.lifecycle.Callable</code> or calling * <code>RequestContext.getEventContext</code> to obtain the MuleEventContext for * the current thread. The user can programmatically control how events are * dispached. * * @param stopFurtherProcessing the value to set. */ public void setStopFurtherProcessing(boolean stopFurtherProcessing) { event.setStopFurtherProcessing(stopFurtherProcessing); }
event.setStopFurtherProcessing(true);
private MuleEvent buildWsdlOrXSDResult(final MuleEvent event) throws MuleException { try { String wsdlContents = getWsdlContents(event); wsdlContents = modifyServiceAddress(wsdlContents, event); event.getMessage().setPayload(wsdlContents); // the processing is stopped so that the result is not passed through // the outbound router but will be passed back as a result event.setStopFurtherProcessing(true); return event; } catch (final Exception e) { throw new MessagingException( MessageFactory.createStaticMessage("Impossible to retrieve WSDL for proxied service"), event, e, this); } }
resultEvent.setStopFurtherProcessing(event.isStopFurtherProcessing()); fireComponentNotification(resultEvent.getMessage(), ComponentMessageNotification.COMPONENT_POST_INVOKE);