Package 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,javax.servlet.Servlet,javax.servlet.ServletConfig
public class AjaxServlet extends MessageListenerServlet
AjaxServlet. The AjaxServlet extends theMessageListenerServletwith the capability to server theamq.jsscript 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
-
-
Constructor Summary
Constructors Constructor Description AjaxServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Supports a HTTP DELETE to be equivlanent of consuming a singe message from a queueprotected voiddoJavaScript(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)-
Methods inherited from class org.apache.activemq.web.MessageListenerServlet
destroy, doMessages, doPost, getAjaxWebClient, getReadTimeout, init, writeMessageResponse
-
Methods inherited from class org.apache.activemq.web.MessageServletSupport
appendParametersToMessage, asBoolean, asBoolean, asDestination, asInt, asInteger, asLong, asLong, asString, getDestination, getDestination, getDestinationFromURI, getPostedMessageBody, getSelector, getSendPriority, getSendTimeToLive, init, isSendPersistent, isSync, isTopic
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOExceptionDescription copied from class:MessageListenerServletSupports a HTTP DELETE to be equivlanent of consuming a singe message from a queue- Overrides:
doGetin classMessageListenerServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doJavaScript
protected void doJavaScript(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
-