org.mule.providers.http.servlet
Class MuleRESTReceiverServlet
java.lang.Object
HttpServlet
org.mule.providers.http.servlet.AbstractReceiverServlet
org.mule.providers.http.servlet.MuleReceiverServlet
org.mule.providers.http.servlet.MuleRESTReceiverServlet
- public class MuleRESTReceiverServlet
- extends MuleReceiverServlet
MuleRESTReceiverServlet is used for sending a receiving events from
the Mule server via a serlet container. The servlet uses the REST style of request
processing GET METHOD will do a receive from an external source if an endpoint
parameter is set otherwise it behaves the same way as POST. you can either specify
the transport name i.e. to read from Jms orders.queue
http://www.mycompany.com/rest/jms/orders/queue
or a Mule endpoint name to
target a specific endpoint config. This would get the first email message received
by the orderEmailInbox endpoint.
http://www.mycompany.com/rest/ordersEmailInbox POST Do a sysnchrous call and
return a result http://www.clientapplication.com/service/clientquery?custId=1234
PUT Do an asysnchrous call without returning a result (other than an http
status code) http://www.clientapplication.com/service/orders?payload=more
beer DELETE Same as GET only without returning a result
- Version:
- $Revision: 3798 $
- Author:
- Ross Mason
- See Also:
- Serialized Form
| Fields inherited from class org.mule.providers.http.servlet.AbstractReceiverServlet |
DEFAULT_CONTENT_TYPE_PROPERTY, DEFAULT_GET_TIMEOUT, DEFAULT_PAYLOAD_PARAMETER_NAME, defaultContentType, feedback, FEEDBACK_PROPERTY, logger, PAYLOAD_PARAMETER_NAME, payloadParameterName, REQUEST_TIMEOUT_PROPERTY, SERVLET_CONNECTOR_NAME_PROPERTY, timeout |
|
Method Summary |
protected void |
doDelete(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
|
protected void |
doGet(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
|
protected void |
doPost(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
|
protected void |
doPut(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
|
protected UMOEndpoint |
getEndpointForURI(HttpServletRequest httpServletRequest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MuleRESTReceiverServlet
public MuleRESTReceiverServlet()
doGet
protected void doGet(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws ServletException,
IOException
- Overrides:
doGet in class MuleReceiverServlet
- Throws:
ServletException
IOException
doPost
protected void doPost(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws ServletException,
IOException
- Overrides:
doPost in class MuleReceiverServlet
- Throws:
ServletException
IOException
doPut
protected void doPut(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws ServletException,
IOException
- Throws:
ServletException
IOException
doDelete
protected void doDelete(HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse)
throws ServletException,
IOException
- Throws:
ServletException
IOException
getEndpointForURI
protected UMOEndpoint getEndpointForURI(HttpServletRequest httpServletRequest)
throws EndpointException,
MalformedEndpointException
- Throws:
EndpointException
MalformedEndpointException
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.