|
||||||||||
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.jetty.JettyHttpConnector
public class JettyHttpConnector
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.
Nested Class Summary | |
---|---|
static class |
JettyHttpConnector.DummyJndiConfiguration
A helper class to let jetty startup, we don't bind java ee objects like java:comp/UserTransaction. |
class |
JettyHttpConnector.MuleReceiverConnectorHolder
|
Field Summary | |
---|---|
protected HashMap<String,ConnectorHolder> |
holders
|
static String |
JETTY
|
static String |
ROOT
|
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 | |
---|---|
JettyHttpConnector(MuleContext context)
|
Method Summary | |
---|---|
boolean |
canHostFullWars()
A helper method to differentiate between jetty-based connectors which can host full wars and ones which can't. |
protected ConnectorHolder |
createContextHolder(org.mortbay.jetty.Connector connector,
InboundEndpoint endpoint,
MessageReceiver receiver)
|
protected org.mortbay.jetty.AbstractConnector |
createJettyConnector()
|
protected MessageReceiver |
createReceiver(FlowConstruct flowConstruct,
InboundEndpoint endpoint)
Create a Message receiver for this connector |
protected Servlet |
createServlet(org.mortbay.jetty.Connector connector,
ImmutableEndpoint endpoint)
|
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 dispose any resources associated with this receiver. |
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 |
getConfigFile()
|
protected String |
getHolderKey(ImmutableEndpoint endpoint)
|
org.mortbay.jetty.Server |
getHttpServer()
|
String |
getProtocol()
|
JettyReceiverServlet |
getReceiverServlet()
|
ReplyToHandler |
getReplyToHandler(ImmutableEndpoint endpoint)
Getter for property 'replyToHandler'. |
String |
getResourceBase()
|
WebappsConfiguration |
getWebappsConfiguration()
|
protected void |
initialiseFromConfigFile()
|
boolean |
isUseContinuations()
|
void |
setConfigFile(String configFile)
|
void |
setReceiverServlet(JettyReceiverServlet receiverServlet)
|
void |
setResourceBase(String resourceBase)
|
protected void |
setupJettyLogging()
|
void |
setUseContinuations(boolean useContinuations)
|
void |
setWebappsConfiguration(WebappsConfiguration webappsConfiguration)
|
void |
unregisterListener(MessageReceiver receiver)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ROOT
public static final String JETTY
protected HashMap<String,ConnectorHolder> holders
Constructor Detail |
---|
public JettyHttpConnector(MuleContext context)
Method Detail |
---|
protected void setupJettyLogging()
public String getProtocol()
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractConnector
InitialisationException
protected void initialiseFromConfigFile() throws InitialisationException
InitialisationException
protected void doDispose()
doDispose
in class AbstractConnector
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 failsprotected void doConnect() throws Exception
doConnect
in class AbstractConnector
Exception
protected void doDisconnect() throws Exception
doDisconnect
in class AbstractConnector
Exception
protected MessageReceiver createReceiver(FlowConstruct flowConstruct, InboundEndpoint endpoint) throws Exception
AbstractConnector
createReceiver
in class AbstractConnector
flowConstruct
- the service that will receive events from this receiver, the
listenerendpoint
- the endpoint that defies this inbound communication
TransportServiceDescriptor
initialised using the service and endpoint.
Exception
- if there is a problem creating the receiver. This exception
really depends on the underlying transport, thus any exception
could be thrownprotected org.mortbay.jetty.AbstractConnector createJettyConnector()
public void unregisterListener(MessageReceiver receiver) throws MuleException
MuleException
public org.mortbay.jetty.Server getHttpServer()
public String getConfigFile()
public void setConfigFile(String configFile)
public JettyReceiverServlet getReceiverServlet()
public void setReceiverServlet(JettyReceiverServlet receiverServlet)
public ReplyToHandler getReplyToHandler(ImmutableEndpoint endpoint)
AbstractConnector
getReplyToHandler
in class AbstractConnector
public boolean isUseContinuations()
public void setUseContinuations(boolean useContinuations)
protected ConnectorHolder createContextHolder(org.mortbay.jetty.Connector connector, InboundEndpoint endpoint, MessageReceiver receiver)
protected Servlet createServlet(org.mortbay.jetty.Connector connector, ImmutableEndpoint endpoint)
protected String getHolderKey(ImmutableEndpoint endpoint)
public String getResourceBase()
public void setResourceBase(String resourceBase)
public WebappsConfiguration getWebappsConfiguration()
public void setWebappsConfiguration(WebappsConfiguration webappsConfiguration)
public boolean canHostFullWars()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |