public class JettyContinuationsMessageProcessTemplate extends JettyMessageProcessTemplate implements EndPhaseTemplate
logger
Constructor and Description |
---|
JettyContinuationsMessageProcessTemplate(HttpServletRequest request,
HttpServletResponse response,
AbstractMessageReceiver messageReceiver,
MuleContext muleContext,
org.eclipse.jetty.continuation.Continuation continuation) |
Modifier and Type | Method and Description |
---|---|
void |
completeProcessingRequest() |
void |
discardMessageOnThrottlingExceeded()
Discards the message due to ThrottlingPolicy configured for the
MessageSource is exceeded |
void |
messageProcessingEnded()
template method call when the message processing ends
|
void |
sendFailureResponseToClient(MessagingException messagingException) |
void |
sendResponseToClient(MuleEvent muleEvent)
Template method to send a response after processing the message.
|
void |
suspended() |
acquireMessage, afterFailureProcessingFlow, createMessageFromSource, getServletResponse, getServletResponseWriter, setThrottlingPolicyStatistics
afterFailureProcessingFlow, afterRouteEvent, afterSuccessfulProcessingFlow, beforeRouteEvent, createEventFromMuleMessage, discardInvalidMessage, getConnector, getFlowConstruct, getInboundEndpoint, getMessageReceiver, getMuleContext, getMuleEvent, getOriginalMessage, getOutputStream, propagateRootMessageIdProperty, routeEvent, validateMessage, warnIfMuleClientSendUsed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterFailureProcessingFlow, afterRouteEvent, afterSuccessfulProcessingFlow, beforeRouteEvent, getMuleEvent, getOriginalMessage, routeEvent
getMuleEvent
public JettyContinuationsMessageProcessTemplate(HttpServletRequest request, HttpServletResponse response, AbstractMessageReceiver messageReceiver, MuleContext muleContext, org.eclipse.jetty.continuation.Continuation continuation)
public void sendResponseToClient(MuleEvent muleEvent) throws MuleException
RequestResponseFlowProcessingPhaseTemplate
sendResponseToClient
in interface RequestResponseFlowProcessingPhaseTemplate
sendResponseToClient
in class JettyMessageProcessTemplate
muleEvent
- the event with the content of the response to be sent.MuleException
- exception thrown when processing the message to send the response. If there's a failure when writing the response
using the underlying transport or connector then the exception to throw must be a ResponseDispatchException
.public void sendFailureResponseToClient(MessagingException messagingException) throws MuleException
sendFailureResponseToClient
in interface RequestResponseFlowProcessingPhaseTemplate
sendFailureResponseToClient
in class JettyMessageProcessTemplate
messagingException
- exception thrown during the flow execution.MuleException
- exception thrown when processing the message to send the response.public void completeProcessingRequest()
public void discardMessageOnThrottlingExceeded() throws MuleException
ThrottlingPhaseTemplate
MessageSource
is exceededdiscardMessageOnThrottlingExceeded
in interface ThrottlingPhaseTemplate
discardMessageOnThrottlingExceeded
in class JettyMessageProcessTemplate
MuleException
public void suspended()
public void messageProcessingEnded()
EndPhaseTemplate
messageProcessingEnded
in interface EndPhaseTemplate
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.