|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.listeners.message.AbstractListener
org.jboss.soa.esb.listeners.message.AbstractPassiveListener
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 | |
|---|---|
protected boolean |
info
|
java.lang.String |
listenHttpUrl
|
protected org.apache.log4j.Logger |
logger
|
| Fields inherited from class org.jboss.soa.esb.listeners.message.AbstractListener |
|---|
_config, _controller, m_iMaxThr, m_iUpperThreadLimit, PARM_MAX_THREADS, pipelineExecutorPool |
| Constructor Summary | |
|---|---|
HttpListener(EsbListenerController esbListenerController,
ConfigTree configuration)
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. |
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.message.AbstractPassiveListener |
|---|
run |
| 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
protected boolean info
public java.lang.String listenHttpUrl
| Constructor Detail |
|---|
public HttpListener(EsbListenerController esbListenerController,
ConfigTree configuration)
throws ConfigurationException,
ListenerInitializationException
commandListener - listenerConfig - actionDefinitionFactory -
java.lang.Exception
ConfigurationException
ListenerInitializationException| Method Detail |
|---|
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 | ||||||||