public class MuleRESTReceiverServlet extends MuleReceiverServlet
MuleRESTReceiverServlet is used for sending and receiving events from
the Mule server via a servlet container. The servlet uses the REST style of request
processing.
GET METHOD will do a request from an endpoint if an endpoint parameter is set otherwise
it behaves the same way as POST. You can either specify the endpoint URL REST-style,
e.g., to read from jms://orders.queue
http://www.mycompany.com/rest/jms/orders/queue or a logical Mule endpoint name,
e.g., this would get the first email message received by the orderEmailInbox endpoint.
http://www.mycompany.com/rest/ordersEmailInbox
POST METHOD Do a synchronous call and return a result
http://www.clientapplication.com/service/clientquery?custId=1234
PUT METHOD Do an asynchronous call without returning a result (other than an http
status code) http://www.clientapplication.com/service/orders?payload=connectorDEFAULT_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 |
|---|
MuleRESTReceiverServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDelete(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected void |
doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected void |
doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected void |
doPut(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
protected org.mule.api.endpoint.InboundEndpoint |
getEndpointForURI(javax.servlet.http.HttpServletRequest httpServletRequest) |
doAllMethods, doHead, doInit, doOptions, doTrace, getOrCreateServletConnector, getReceiverForURI, getReceiverName, getReceivers, getRequestUrl, handleException, matchReceiverByWildcard, processHttpRequest, routeMessage, service, setupRequestMessage, setupRequestMessageinit, setupMuleContext, setupResponseTransformer, writeErrorResponseFromMessage, writeResponseprotected void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
IOException
doGet in class MuleReceiverServletjavax.servlet.ServletExceptionIOExceptionprotected void doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
IOException
doPost in class MuleReceiverServletjavax.servlet.ServletExceptionIOExceptionprotected void doPut(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
IOException
doPut in class MuleReceiverServletjavax.servlet.ServletExceptionIOExceptionprotected void doDelete(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws javax.servlet.ServletException,
IOException
doDelete in class MuleReceiverServletjavax.servlet.ServletExceptionIOExceptionprotected org.mule.api.endpoint.InboundEndpoint getEndpointForURI(javax.servlet.http.HttpServletRequest httpServletRequest)
throws org.mule.api.MuleException
org.mule.api.MuleExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.