Class SendMessage
- java.lang.Object
-
- org.apache.activemq.web.DestinationFacade
-
- org.apache.activemq.web.controller.SendMessage
-
- All Implemented Interfaces:
org.springframework.web.servlet.mvc.Controller
public class SendMessage extends DestinationFacade implements org.springframework.web.servlet.mvc.Controller
Sends a message
-
-
Constructor Summary
Constructors Constructor Description SendMessage(BrokerFacade brokerFacade)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendHeaders(javax.jms.Message message, javax.servlet.http.HttpServletRequest request)protected javax.jms.MessagecreateMessage(WebClient client, javax.servlet.http.HttpServletRequest request)StringgetJMSCorrelationID()intgetJMSMessageCount()StringgetJMSMessageCountHeader()intgetJMSPriority()StringgetJMSReplyTo()StringgetJMSText()intgetJMSTimeToLive()StringgetJMSType()String[]getSupportedHttpMethods()org.springframework.web.servlet.ModelAndViewhandleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)booleanisJMSPersistent()protected booleanisValidPropertyName(String name)protected voidsendMessages(javax.servlet.http.HttpServletRequest request, WebClient client, org.apache.activemq.command.ActiveMQDestination dest)voidsetJMSCorrelationID(String correlationID)voidsetJMSMessageCount(int copies)voidsetJMSMessageCountHeader(String messageCountHeader)voidsetJMSPersistent(boolean persistent)voidsetJMSPriority(int priority)voidsetJMSReplyTo(String replyTo)voidsetJMSText(String text)voidsetJMSTimeToLive(int timeToLive)voidsetJMSType(String type)-
Methods inherited from class org.apache.activemq.web.DestinationFacade
addDestination, createDestination, getBrokerAdmin, getBrokerFacade, getJMSDestination, getJMSDestinationType, getPhysicalDestinationName, getQueueView, getValidDestination, isQueue, redirectToBrowseView, redirectToDestinationView, redirectToRequest, removeDestination, setJMSDestination, setJMSDestinationType, toString
-
-
-
-
Constructor Detail
-
SendMessage
public SendMessage(BrokerFacade brokerFacade)
-
-
Method Detail
-
handleRequest
public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception- Specified by:
handleRequestin interfaceorg.springframework.web.servlet.mvc.Controller- Throws:
Exception
-
sendMessages
protected void sendMessages(javax.servlet.http.HttpServletRequest request, WebClient client, org.apache.activemq.command.ActiveMQDestination dest) throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
getJMSCorrelationID
public String getJMSCorrelationID()
-
setJMSCorrelationID
public void setJMSCorrelationID(String correlationID)
-
getJMSReplyTo
public String getJMSReplyTo()
-
setJMSReplyTo
public void setJMSReplyTo(String replyTo)
-
getJMSType
public String getJMSType()
-
setJMSType
public void setJMSType(String type)
-
isJMSPersistent
public boolean isJMSPersistent()
-
setJMSPersistent
public void setJMSPersistent(boolean persistent)
-
getJMSPriority
public int getJMSPriority()
-
setJMSPriority
public void setJMSPriority(int priority)
-
getJMSText
public String getJMSText()
-
setJMSText
public void setJMSText(String text)
-
getJMSTimeToLive
public int getJMSTimeToLive()
-
setJMSTimeToLive
public void setJMSTimeToLive(int timeToLive)
-
getJMSMessageCount
public int getJMSMessageCount()
-
setJMSMessageCount
public void setJMSMessageCount(int copies)
-
getJMSMessageCountHeader
public String getJMSMessageCountHeader()
-
setJMSMessageCountHeader
public void setJMSMessageCountHeader(String messageCountHeader)
-
createMessage
protected javax.jms.Message createMessage(WebClient client, javax.servlet.http.HttpServletRequest request) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
appendHeaders
protected void appendHeaders(javax.jms.Message message, javax.servlet.http.HttpServletRequest request) throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
isValidPropertyName
protected boolean isValidPropertyName(String name)
-
getSupportedHttpMethods
public String[] getSupportedHttpMethods()
- Overrides:
getSupportedHttpMethodsin classDestinationFacade
-
-