|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.AbstractConnector
org.mule.transport.servlet.ServletConnector
public class ServletConnector
ServletConnector is a channel adapter between Mule and a servlet
engine. It allows the MuleReceiverServlet to look up components interested in
requests it receives via the servlet container.
MuleReceiverServlet| Field Summary | |
|---|---|
static String |
CHARACTER_ENCODING_PROPERTY_KEY
This property name is used to store the character encoding of the HttpServletRequest to
the MuleMessage |
static String |
CONTENT_TYPE_PROPERTY_KEY
This property name is used to store the content type of the HttpServletRequest to
the MuleMessage |
static String |
PARAMETER_MAP_PROPERTY_KEY
This property name is used to store a Map containing all request parameters to the
MuleMessage. |
static String |
PARAMETER_PROPERTY_PREFIX
This prefix is used to store parameters from the incoming HttpServletRequest to
the MuleMessage. |
static String |
SERVLET
|
protected String |
servletUrl
|
| Fields inherited from class org.mule.transport.AbstractConnector |
|---|
connected, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatchers, initialStateStopped, lifecycleManager, logger, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect |
| Fields inherited from interface org.mule.api.transport.Connector |
|---|
INT_VALUE_NOT_SET |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
ServletConnector(MuleContext context)
|
|
| Method Summary | |
|---|---|
protected void |
doConnect()
Template method where any connections should be made for the connector |
protected void |
doDisconnect()
Template method where any connected resources used by the connector should be disconnected |
protected void |
doDispose()
Template method to perform any work when destroying the connectoe |
protected void |
doInitialise()
|
protected void |
doStart()
Template method to perform any work when starting the connectoe |
protected void |
doStop()
Template method to perform any work when stopping the connectoe |
String |
getProtocol()
|
protected Object |
getReceiverKey(FlowConstruct flowConstruct,
InboundEndpoint endpoint)
The method determines the key used to store the receiver against. |
Map<Object,MessageReceiver> |
getReceivers()
Getter for property 'receivers'. |
String |
getServletUrl()
|
void |
setServletUrl(String servletUrl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String SERVLET
public static final String CHARACTER_ENCODING_PROPERTY_KEY
HttpServletRequest to
the MuleMessage
public static final String CONTENT_TYPE_PROPERTY_KEY
HttpServletRequest to
the MuleMessage
public static final String PARAMETER_PROPERTY_PREFIX
HttpServletRequest to
the MuleMessage.
public static final String PARAMETER_MAP_PROPERTY_KEY
Map containing all request parameters to the
MuleMessage.
protected String servletUrl
| Constructor Detail |
|---|
public ServletConnector(MuleContext context)
| Method Detail |
|---|
protected void doInitialise()
throws InitialisationException
doInitialise in class AbstractConnectorInitialisationExceptionprotected void doDispose()
AbstractConnector
doDispose in class AbstractConnector
protected void doConnect()
throws Exception
AbstractConnector
doConnect in class AbstractConnectorException
protected void doDisconnect()
throws Exception
AbstractConnector
doDisconnect in class AbstractConnectorException
protected void doStart()
throws MuleException
AbstractConnector
doStart in class AbstractConnectorMuleException - if the method fails
protected void doStop()
throws MuleException
AbstractConnector
doStop in class AbstractConnectorMuleException - if the method failspublic String getProtocol()
public Map<Object,MessageReceiver> getReceivers()
AbstractConnector
getReceivers in class AbstractConnectorpublic String getServletUrl()
public void setServletUrl(String servletUrl)
protected Object getReceiverKey(FlowConstruct flowConstruct,
InboundEndpoint endpoint)
AbstractConnector
getReceiverKey in class AbstractConnectorflowConstruct - the service for which the endpoint is being registeredendpoint - the endpoint being registered for the service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||