public class ServletConnector extends AbstractConnector
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
Modifier and Type | Field and Description |
---|---|
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 |
static String |
SESSION_ID_PROPERTY_KEY
This property name is used to store the session id
HttpServletRequest to
the MuleMessage |
createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect
INT_VALUE_NOT_SET
PHASE_NAME
Constructor and Description |
---|
ServletConnector(MuleContext context) |
Modifier and Type | Method and Description |
---|---|
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() |
boolean |
isUseCachedHttpServletRequest() |
void |
setServletUrl(String servletUrl) |
void |
setUseCachedHttpServletRequest(boolean useCachedHttpServletRequest) |
borrowDispatcher, clearDispatchers, clearRequesters, configureDispatcherPool, connect, createDefaultRedeliveryPolicy, createDispatcherMessageProcessor, createMuleMessageFactory, createOperationResource, createReceiver, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, getCanonicalURI, getConnectEventId, getConnectionDescription, getDefaultExchangePattern, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherPoolFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getInboundExchangePatterns, getLifecycleState, getMaxDispatchersActive, getMaxRequestersActive, getMaxTotalDispatchers, getMuleContext, getMuleMessageFactory, getName, getNumberOfConcurrentTransactedReceivers, getOperationResourceFactory, getOutboundExchangePatterns, getOutputStream, getReceiver, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, getTransactionalResource, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isConnecting, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isInitialised, isInitialStateStopped, isResponseEnabled, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerListener, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, returnDispatcher, setConnected, setConnecting, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherPoolFactory, setDispatcherPoolMaxWait, setDispatcherPoolWhenExhaustedAction, setDispatcherThreadingProfile, setDynamicNotification, setInitialStateStopped, setMaxDispatchersActive, setMaxRequestersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterPoolMaxWait, setRequesterPoolWhenExhaustedAction, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, setValidateConnections, shutdownScheduler, start, startAfterConnect, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, workAccepted, workCompleted, workRejected, workStarted
public static final String SERVLET
public static final String SESSION_ID_PROPERTY_KEY
HttpServletRequest
to
the MuleMessage
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
public ServletConnector(MuleContext context)
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractConnector
InitialisationException
protected void doDispose()
AbstractConnector
doDispose
in class AbstractConnector
protected void doConnect() throws Exception
AbstractConnector
doConnect
in class AbstractConnector
Exception
protected void doDisconnect() throws Exception
AbstractConnector
doDisconnect
in class AbstractConnector
Exception
protected void doStart() throws MuleException
AbstractConnector
doStart
in class AbstractConnector
MuleException
- if the method failsprotected void doStop() throws MuleException
AbstractConnector
doStop
in class AbstractConnector
MuleException
- if the method failspublic String getProtocol()
public Map<Object,MessageReceiver> getReceivers()
AbstractConnector
getReceivers
in class AbstractConnector
public String getServletUrl()
public void setServletUrl(String servletUrl)
protected Object getReceiverKey(FlowConstruct flowConstruct, InboundEndpoint endpoint)
AbstractConnector
getReceiverKey
in class AbstractConnector
flowConstruct
- the service for which the endpoint is being registeredendpoint
- the endpoint being registered for the servicepublic boolean isUseCachedHttpServletRequest()
public void setUseCachedHttpServletRequest(boolean useCachedHttpServletRequest)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.