org.apache.commons.messagelet.impl
Class MessageHttpServletDispatcher

java.lang.Object
  extended by org.apache.commons.messagelet.MessageDrivenObjectSupport
      extended by org.apache.commons.messagelet.impl.MessageHttpServletDispatcher
All Implemented Interfaces:
javax.jms.MessageListener, MessageDrivenObject, MessengerListener

public class MessageHttpServletDispatcher
extends MessageDrivenObjectSupport
implements MessengerListener

MessageHttpServletDispatcher dispatches JMS Messages into a HttpServlet for procesing.

Version:
$Revision: 155459 $
Author:
James Strachan

Constructor Summary
MessageHttpServletDispatcher()
           
MessageHttpServletDispatcher(String path)
           
 
Method Summary
protected  HttpServletRequestImpl createHttpServletRequest()
           
 String getPath()
          Getter for property path.
protected  void handleException(javax.jms.Message message, Throwable t)
           
 void init()
          This method allows the init() method to be overriden without having to call the super.init( ServletContext ) method first.
 void onMessage(javax.jms.Message message)
          Process the incoming JMS Message.
 void setMessenger(Messenger messenger)
          Called whenever this MessageListener is added to a Messenger via the addListener() method to associate this MessageListener with a Messenger instance..
 void setPath(String path)
          Setter for property path.
 
Methods inherited from class org.apache.commons.messagelet.MessageDrivenObjectSupport
destroy, getLog, getServletContext, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageHttpServletDispatcher

public MessageHttpServletDispatcher()

MessageHttpServletDispatcher

public MessageHttpServletDispatcher(String path)
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Description copied from class: MessageDrivenObjectSupport
This method allows the init() method to be overriden without having to call the super.init( ServletContext ) method first. This is similar to the init() method in GenericServlet.

Overrides:
init in class MessageDrivenObjectSupport
Throws:
javax.servlet.ServletException

setMessenger

public void setMessenger(Messenger messenger)
Description copied from interface: MessengerListener
Called whenever this MessageListener is added to a Messenger via the addListener() method to associate this MessageListener with a Messenger instance..

Specified by:
setMessenger in interface MessengerListener

onMessage

public void onMessage(javax.jms.Message message)
Process the incoming JMS Message.

Specified by:
onMessage in interface javax.jms.MessageListener
Parameters:
message - is the message to be processed

getPath

public String getPath()
Getter for property path.

Returns:
Value of property path.

setPath

public void setPath(String path)
Setter for property path.

Parameters:
path - New value of property path.

handleException

protected void handleException(javax.jms.Message message,
                               Throwable t)

createHttpServletRequest

protected HttpServletRequestImpl createHttpServletRequest()


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.