|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
org.jboss.soa.esb.listeners.gateway.HttpGatewayListener
public class HttpGatewayListener
Tomcat Listener provids the functionality to pass the http request to ESB service .
This class will generate Connector,
StandardHost and StandardContext
for user defined http port, host and context. These generated tomcat components will be
attached to jboss embeded tomcat(aka jboss web). You can monitor and control these new generated
components through jboss JMX console. When this listener is stoped, these components will be
destoried automatically.
The different tomcat listner can be started in same port with different context.for example:
http://localhost:8765/jbossesb/servicecategory/servicename
This class uses the HttpMessageComposer
by default.
HttpMessageComposer,
Torg.jboss.soa.esb.listeners.gateway.HttpDispatchServlet,
Serialized Form| Field Summary | |
|---|---|
java.lang.String |
address
Http address value |
static java.lang.String |
ALLOW_HTTP_METHOD
Allow http method config attribute name |
static java.lang.String |
AUTH_METHOD
Auth method config attribute name |
static java.lang.String |
DISPATCH_SERVLET_CLASS
The tag used to read the dispatch servlet class name value from configuration |
java.lang.String |
host
Http host value |
java.lang.String |
httpContext
listener contenxt |
java.lang.String |
maxThreads
Default max threads |
java.lang.String |
port
Http port value |
static java.lang.String |
REQUEST_CONTEXT_TAG
The tag used to read the context value from configuration |
static java.lang.String |
SECURITY_DOMAIN
Security domain config attribute name |
static java.lang.String |
SECURITY_ROLE
Security role config attribute name |
static java.lang.String |
SERVER_HOST_TAG
The tag used to read the host value from configuration |
static java.lang.String |
SERVER_PORT_TAG
The tag used to read the port value from configuration |
| Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
|---|
PARAM_TERMINATION_PERIOD |
| Constructor Summary | |
|---|---|
HttpGatewayListener(ConfigTree config)
Constuct the TomcatGatewyListner |
|
| Method Summary | |
|---|---|
protected UncomposedMessageDeliveryAdapter |
createDeliveryAdapter()
Get the uncomposed message delivery dapater |
protected void |
doDestroy()
Handle the destroy of the managed instance. |
protected void |
doInitialise()
Handle the initialisation of the managed instance. |
protected void |
doStart()
Handle the start of the managed instance. |
protected void |
doStop()
Handle the stop of the managed instance. |
protected void |
initWebappDefaults(org.apache.catalina.core.StandardContext ctx)
Initialize the StandardContext.By default it will uses org.jboss.soa.esb.listeners.gateway.TomcatDefaultServlet as default servlet mapping |
protected void |
startHttpServer()
Start the tomcat http server.It will check if it really needs to create Tomcat connector and host. |
void |
stopHttpServer()
Stop tomcat server. |
| Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
|---|
addManagedLifecycleEventListener, changeState, destroy, getConfig, getState, getTerminationPeriod, initialise, removeManagedLifecycleEventListener, start, stop, waitUntilDestroyed, waitUntilDestroyed, waitUntilNotState, waitUntilState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String SERVER_HOST_TAG
public static java.lang.String SERVER_PORT_TAG
public static java.lang.String REQUEST_CONTEXT_TAG
public static java.lang.String DISPATCH_SERVLET_CLASS
public static final java.lang.String ALLOW_HTTP_METHOD
public static final java.lang.String AUTH_METHOD
public static final java.lang.String SECURITY_DOMAIN
public static final java.lang.String SECURITY_ROLE
public java.lang.String host
public java.lang.String address
public java.lang.String port
public java.lang.String maxThreads
public java.lang.String httpContext
| Constructor Detail |
|---|
public HttpGatewayListener(ConfigTree config)
throws ConfigurationException
config - The listener configuration
ConfigurationException - Exception during construction| Method Detail |
|---|
protected void doStart()
throws ManagedLifecycleException
AbstractManagedLifecycle
doStart in class AbstractManagedLifecycleManagedLifecycleException - for errors while starting.
protected void doStop()
throws ManagedLifecycleException
AbstractManagedLifecycle
doStop in class AbstractManagedLifecycleManagedLifecycleException - for errors while stopping.
protected void doInitialise()
throws ManagedLifecycleException
AbstractManagedLifecycle
doInitialise in class AbstractManagedLifecycleManagedLifecycleException - for errors while initialisation.
protected void doDestroy()
throws ManagedLifecycleException
AbstractManagedLifecycle
doDestroy in class AbstractManagedLifecycleManagedLifecycleException - for errors while destroying.
protected void startHttpServer()
throws java.lang.Exception
java.lang.Exception - For error during start tomcat context
public void stopHttpServer()
throws java.lang.Exception
java.lang.Exception - For errors during stop tomcat connector or host
protected UncomposedMessageDeliveryAdapter createDeliveryAdapter()
throws ConfigurationException
ConfigurationException - For configuation error
protected void initWebappDefaults(org.apache.catalina.core.StandardContext ctx)
throws java.lang.Exception
org.jboss.soa.esb.listeners.gateway.TomcatDefaultServlet as default servlet mapping
ctx - Created tomcat standard context
java.lang.Exception - For errors during initialization
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||