|
||||||||||
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 java.util.HashMap<java.lang.String,ConnectorHolder> |
holders
|
static java.lang.String |
JETTY
|
static java.lang.String |
RESOURCE_BASE_PROPERTY
|
static java.lang.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 javax.servlet.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 |
java.lang.String |
getConfigFile()
|
protected java.lang.String |
getHolderKey(ImmutableEndpoint endpoint)
|
org.mortbay.jetty.Server |
getHttpServer()
|
java.lang.String |
getProtocol()
|
JettyReceiverServlet |
getReceiverServlet()
|
ReplyToHandler |
getReplyToHandler(ImmutableEndpoint endpoint)
Getter for property 'replyToHandler'. |
protected void |
initialiseFromConfigFile()
|
boolean |
isUseContinuations()
|
void |
setConfigFile(java.lang.String configFile)
|
void |
setReceiverServlet(JettyReceiverServlet receiverServlet)
|
void |
setUseContinuations(boolean useContinuations)
|
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 java.lang.String RESOURCE_BASE_PROPERTY
public static final java.lang.String ROOT
public static final java.lang.String JETTY
protected java.util.HashMap<java.lang.String,ConnectorHolder> holders
Constructor Detail |
---|
public JettyHttpConnector(MuleContext context)
Method Detail |
---|
public java.lang.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 java.lang.Exception
doConnect
in class AbstractConnector
java.lang.Exception
protected void doDisconnect() throws java.lang.Exception
doDisconnect
in class AbstractConnector
java.lang.Exception
protected MessageReceiver createReceiver(FlowConstruct flowConstruct, InboundEndpoint endpoint) throws java.lang.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.
java.lang.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 java.lang.String getConfigFile()
public void setConfigFile(java.lang.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 javax.servlet.Servlet createServlet(org.mortbay.jetty.Connector connector, ImmutableEndpoint endpoint)
protected java.lang.String getHolderKey(ImmutableEndpoint endpoint)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |