public class MuleReceiverServlet extends AbstractReceiverServlet
Modifier and Type | Field and Description |
---|---|
protected ServletConnector |
connector |
DEFAULT_CONTENT_TYPE_PROPERTY, DEFAULT_GET_TIMEOUT, DEFAULT_PAYLOAD_PARAMETER_NAME, defaultContentType, feedback, FEEDBACK_PROPERTY, logger, muleContext, PAYLOAD_PARAMETER_NAME, payloadParameterName, REQUEST_TIMEOUT_PROPERTY, SERVLET_CONNECTOR_NAME_PROPERTY, timeout
Constructor and Description |
---|
MuleReceiverServlet() |
init, setupMuleContext, setupResponseTransformer, writeErrorResponseFromMessage, writeResponse
getLastModified, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
protected ServletConnector connector
protected void doInit() throws ServletException
doInit
in class AbstractReceiverServlet
ServletException
protected ServletConnector getOrCreateServletConnector(String name) throws ServletException
ServletException
protected void setupRequestMessage(HttpServletRequest request, MuleMessage requestMessage, MessageReceiver receiver)
protected void setupRequestMessage(HttpServletRequest request, MuleMessage requestMessage)
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
service
in class HttpServlet
ServletException
IOException
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
doPost
in class HttpServlet
ServletException
IOException
protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
doHead
in class HttpServlet
ServletException
IOException
protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
doDelete
in class HttpServlet
ServletException
IOException
protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
doPut
in class HttpServlet
ServletException
IOException
protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
doOptions
in class HttpServlet
ServletException
IOException
protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
doTrace
in class HttpServlet
ServletException
IOException
protected void doAllMethods(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
ServletException
IOException
protected void processHttpRequest(HttpServletRequest request, HttpServletResponse response, MessageReceiver receiver) throws Exception
Exception
protected MuleEvent routeMessage(MessageReceiver receiver, MuleMessage requestMessage, HttpServletRequest request) throws MuleException
MuleException
protected MessageReceiver getReceiverForURI(HttpServletRequest httpServletRequest) throws EndpointException
EndpointException
protected MessageReceiver matchReceiverByWildcard(String uri, MessageReceiver receiver)
protected String getRequestUrl(HttpServletRequest httpServletRequest)
protected String getReceiverName(HttpServletRequest httpServletRequest)
protected Map<Object,MessageReceiver> getReceivers()
protected void handleException(Throwable t, String message, HttpServletResponse response)
handleException
in class AbstractReceiverServlet
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.