|
||||||||||
| 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 | |
|---|---|
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 | |
|---|---|
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)
|
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 |
|---|
public String getProtocol()
protected void doInitialise()
throws InitialisationException
doInitialise in class AbstractConnectorInitialisationException
protected void initialiseFromConfigFile()
throws InitialisationException
InitialisationExceptionprotected void doDispose()
doDispose in class AbstractConnector
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 fails
protected void doConnect()
throws Exception
doConnect in class AbstractConnectorException
protected void doDisconnect()
throws Exception
doDisconnect in class AbstractConnectorException
protected MessageReceiver createReceiver(FlowConstruct flowConstruct,
InboundEndpoint endpoint)
throws Exception
AbstractConnector
createReceiver in class AbstractConnectorflowConstruct - 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
MuleExceptionpublic 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 AbstractConnectorpublic 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||