org.apache.activemq.web
Class AjaxServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.activemq.web.MessageServletSupport
org.apache.activemq.web.MessageListenerServlet
org.apache.activemq.web.AjaxServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class AjaxServlet
- extends MessageListenerServlet
AjaxServlet. The AjaxServlet extends the MessageListenerServlet
with
the capability to server the amq.js
script and associated
scripts from resources within the activemq-web jar. The amq.js script is the
client side companion to the MessageListenerServlet and supports sending
messages and long polling for receiving messages (Also called Comet style
Ajax).
- See Also:
- Serialized Form
Methods inherited from class org.apache.activemq.web.MessageServletSupport |
appendParametersToMessage, asBoolean, asBoolean, asDestination, asInt, asInteger, asLong, asLong, asString, getDestination, getDestination, getDestinationFromURI, getPostedMessageBody, getSendPriority, getSendTimeToLive, init, isSendPersistent, isSync, isTopic |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxServlet
public AjaxServlet()
doGet
protected void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Description copied from class:
MessageListenerServlet
- Supports a HTTP DELETE to be equivlanent of consuming a singe message
from a queue
- Overrides:
doGet
in class MessageListenerServlet
- Throws:
ServletException
IOException
doJavaScript
protected void doJavaScript(HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
- Throws:
IOException
ServletException
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.