org.mule.transport.servlet.jetty
Class JettyHttpConnector
java.lang.Object
org.mule.transport.AbstractConnector
org.mule.transport.servlet.jetty.JettyHttpConnector
- All Implemented Interfaces:
- ExceptionListener, EventListener, javax.resource.spi.work.WorkListener, MuleContextAware, Disposable, Initialisable, Lifecycle, Startable, Stoppable, NamedObject, Connectable, Connector
- Direct Known Subclasses:
- JettyHttpsConnector
public class JettyHttpConnector
- extends AbstractConnector
The JettyConnector
can be using to embed a Jetty server to receive requests on an http inound endpoint.
One server is created for each connector declared, Many Jetty endpoints can share the same connector.
Fields inherited from class org.mule.transport.AbstractConnector |
connected, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatchers, disposed, exceptionListener, initialised, logger, muleContext, name, numberOfConcurrentTransactedReceivers, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnect |
Methods inherited from class org.mule.transport.AbstractConnector |
checkDisposed, connect, createReceiver, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeRequesters, disposeWorkManagers, exceptionThrown, fireNotification, getConnectEventId, getConnectionDescription, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMaxRequestersActive, getMessageAdapter, getMuleContext, getName, getNumberOfConcurrentTransactedReceivers, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, handleException, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isResponseEnabled, isStarted, isSyncEnabled, isValidateConnections, lookupReceiver, registerListener, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, send, setConnected, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherThreadingProfile, setDynamicNotification, setExceptionListener, setMaxDispatchersActive, setMaxRequestersActive, setMuleContext, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, setValidateConnections, start, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, workAccepted, workCompleted, workRejected, workStarted |
JETTY
public static final String JETTY
- See Also:
- Constant Field Values
REST
public static final String REST
- See Also:
- Constant Field Values
JettyHttpConnector
public JettyHttpConnector()
getProtocol
public String getProtocol()
- Returns:
- the primary protocol name for endpoints of this connector
doInitialise
protected void doInitialise()
throws InitialisationException
- Specified by:
doInitialise
in class AbstractConnector
- Throws:
InitialisationException
doDispose
protected void doDispose()
- Template method to dispose any resources associated with this receiver. There
is not need to dispose the connector as this is already done by the framework
- Specified by:
doDispose
in class AbstractConnector
doStart
protected void doStart()
throws MuleException
- Description copied from class:
AbstractConnector
- Template method to perform any work when starting the connectoe
- Specified by:
doStart
in class AbstractConnector
- Throws:
MuleException
- if the method fails
doStop
protected void doStop()
throws MuleException
- Description copied from class:
AbstractConnector
- Template method to perform any work when stopping the connectoe
- Specified by:
doStop
in class AbstractConnector
- Throws:
MuleException
- if the method fails
doConnect
protected void doConnect()
throws Exception
- Template method where any connections should be made for the connector
- Specified by:
doConnect
in class AbstractConnector
- Throws:
Exception
doDisconnect
protected void doDisconnect()
throws Exception
- Template method where any connected resources used by the connector should be
disconnected
- Specified by:
doDisconnect
in class AbstractConnector
- Throws:
Exception
createJettyConnector
protected org.mortbay.jetty.AbstractConnector createJettyConnector()
unregisterListener
public boolean unregisterListener(MessageReceiver receiver)
getHttpServer
public org.mortbay.jetty.Server getHttpServer()
getConfigFile
public String getConfigFile()
setConfigFile
public void setConfigFile(String configFile)
getReceiverServlet
public JettyReceiverServlet getReceiverServlet()
setReceiverServlet
public void setReceiverServlet(JettyReceiverServlet receiverServlet)
createReceiverServlet
protected JettyReceiverServlet createReceiverServlet()
getServletClass
public Class getServletClass()
setServletClass
public void setServletClass(Class servletClass)
getReplyToHandler
public ReplyToHandler getReplyToHandler()
- Getter for property 'replyToHandler'.
- Overrides:
getReplyToHandler
in class AbstractConnector
- Returns:
- Value for property 'replyToHandler'.
isUseContinuations
public boolean isUseContinuations()
setUseContinuations
public void setUseContinuations(boolean useContinuations)
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.