|
|||||||||
| 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.message.HttpListener
public class HttpListener
Http listener implementation using the JBoss Remoting channel.
The listener will listen to messages on the configured listenHttpUrl. If this
is not set, the default http://localhost:5400 will be used.
This listener expects an Object message whose type is org.jboss.soa.esb.message.Message
Sample listener Configuration:
<HttpListener listenerClass="org.jboss.soa.esb.listeners.message.HttpListener">
<action class="org.jboss.soa.esb.actions.routing.EchoRouter"/>
</HttpListener>
| Field Summary | |
|---|---|
java.lang.String |
listenHttpUrl
|
protected org.apache.log4j.Logger |
logger
|
| Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
|---|
PARAM_TERMINATION_PERIOD |
| Constructor Summary | |
|---|---|
HttpListener(ConfigTree config)
Constructor initialising this HttpListener |
|
| Method Summary | |
|---|---|
void |
addListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
Adds a callback handler that will listen for callbacks from the server invoker handler. |
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. |
java.lang.String |
getListenHttpUrl()
Method getting the url this HttpListener instance is listening on |
java.lang.Object |
invoke(org.jboss.remoting.InvocationRequest invocationRequest)
|
void |
removeListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
Removes the callback handler that was listening for callbacks from the server invoker handler. |
void |
setInvoker(org.jboss.remoting.ServerInvoker invoker)
set the invoker that owns this handler |
void |
setListenHttpUrl(java.lang.String listenHttpUrl)
Method setting the listenHttpUrl property to listen on |
void |
setMBeanServer(javax.management.MBeanServer server)
set the mbean server that the handler can reference |
| Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle |
|---|
addManagedLifecycleEventListener, changeState, destroy, getState, getTerminationPeriod, initialise, removeManagedLifecycleEventListener, start, stop, waitForStateChange, waitUntilDestroyed, waitUntilDestroyed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.log4j.Logger logger
public java.lang.String listenHttpUrl
| Constructor Detail |
|---|
public HttpListener(ConfigTree config)
throws ConfigurationException
commandListener - listenerConfig - actionDefinitionFactory -
ConfigurationException
ListenerInitializationException| Method Detail |
|---|
protected void doInitialise()
throws ManagedLifecycleException
doInitialise in class AbstractManagedLifecycleManagedLifecycleException - for errors while initialisation.
protected void doStart()
throws ManagedLifecycleException
doStart in class AbstractManagedLifecycleManagedLifecycleException - for errors while starting.
protected void doStop()
throws ManagedLifecycleException
doStop in class AbstractManagedLifecycleManagedLifecycleException - for errors while stopping.
protected void doDestroy()
throws ManagedLifecycleException
doDestroy in class AbstractManagedLifecycleManagedLifecycleException - for errors while destroying.
public java.lang.Object invoke(org.jboss.remoting.InvocationRequest invocationRequest)
throws java.lang.Throwable
invoke in interface org.jboss.remoting.ServerInvocationHandlerjava.lang.Throwablepublic void addListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
addListener in interface org.jboss.remoting.ServerInvocationHandlercallbackHandler - public void removeListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
removeListener in interface org.jboss.remoting.ServerInvocationHandlercallbackHandler - public void setMBeanServer(javax.management.MBeanServer server)
setMBeanServer in interface org.jboss.remoting.ServerInvocationHandlerserver - public void setInvoker(org.jboss.remoting.ServerInvoker invoker)
setInvoker in interface org.jboss.remoting.ServerInvocationHandlerinvoker - public java.lang.String getListenHttpUrl()
public void setListenHttpUrl(java.lang.String listenHttpUrl)
listenHttpUrl - the listenHttpUrl to be used by this HttpListener instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||