|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.commons.messenger.MessengerServlet
public class MessengerServlet
MessengerServlet
is a simple servlet that
dispatches the current HTTP GET to a JMS connection to a receiveNoWait() call
or a HTTP POST to send() message.
Field Summary | |
---|---|
private javax.jms.Destination |
destination
Holds value of property destination. |
private static java.lang.String |
KEY_DESTINATION
|
private static java.lang.String |
KEY_MESSENGER
|
private Messenger |
messenger
Holds value of property messenger. |
Constructor Summary | |
---|---|
MessengerServlet()
|
Method Summary | |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
doPut(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
javax.jms.Destination |
getDestination()
Getter for property destination. |
Messenger |
getMessenger()
Getter for property messenger. |
protected java.lang.String |
getRequiredInitParmeter(java.lang.String key,
java.lang.String description)
|
void |
init()
|
protected javax.jms.Message |
readMessage(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Derived classes may wish to change how a JMS Message is read from an incoming request, e.g. |
void |
setDestination(javax.jms.Destination destination)
Setter for property destination. |
void |
setMessenger(Messenger messenger)
Setter for property messenger. |
protected void |
writeMessage(javax.jms.Message message,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String KEY_MESSENGER
private static final java.lang.String KEY_DESTINATION
private Messenger messenger
private javax.jms.Destination destination
Constructor Detail |
---|
public MessengerServlet()
Method Detail |
---|
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
public Messenger getMessenger()
public void setMessenger(Messenger messenger)
messenger
- New value of property messenger.public javax.jms.Destination getDestination()
public void setDestination(javax.jms.Destination destination)
destination
- New value of property destination.protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
protected void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
doPut
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
protected javax.jms.Message readMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.jms.JMSException, javax.servlet.ServletException
java.io.IOException
javax.jms.JMSException
javax.servlet.ServletException
protected void writeMessage(javax.jms.Message message, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.jms.JMSException, javax.servlet.ServletException
java.io.IOException
javax.jms.JMSException
javax.servlet.ServletException
protected java.lang.String getRequiredInitParmeter(java.lang.String key, java.lang.String description) throws javax.servlet.ServletException
javax.servlet.ServletException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |