org.apache.activemq.web.controller
Class SendMessage

java.lang.Object
  extended by org.apache.activemq.web.DestinationFacade
      extended by 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
SendMessage(BrokerFacade brokerFacade)
           
 
Method Summary
protected  void appendHeaders(Message message, HttpServletRequest request)
           
protected  Message createMessage(WebClient client, HttpServletRequest request)
           
 String getJMSCorrelationID()
           
 int getJMSMessageCount()
           
 String getJMSMessageCountHeader()
           
 int getJMSPriority()
           
 String getJMSReplyTo()
           
 String getJMSText()
           
 int getJMSTimeToLive()
           
 String getJMSType()
           
 String[] getSupportedHttpMethods()
           
 org.springframework.web.servlet.ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response)
           
 boolean isJMSPersistent()
           
protected  boolean isValidPropertyName(String name)
           
protected  void sendMessages(HttpServletRequest request, WebClient client, ActiveMQDestination dest)
           
 void setJMSCorrelationID(String correlationID)
           
 void setJMSMessageCount(int copies)
           
 void setJMSMessageCountHeader(String messageCountHeader)
           
 void setJMSPersistent(boolean persistent)
           
 void setJMSPriority(int priority)
           
 void setJMSReplyTo(String replyTo)
           
 void setJMSText(String text)
           
 void setJMSTimeToLive(int timeToLive)
           
 void setJMSType(String type)
           
 
Methods inherited from class org.apache.activemq.web.DestinationFacade
addDestination, createDestination, getBrokerAdmin, getBrokerFacade, getJMSDestination, getJMSDestinationType, getPhysicalDestinationName, getQueueView, getValidDestination, isQueue, redirectToBrowseView, redirectToRequest, removeDestination, setJMSDestination, setJMSDestinationType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SendMessage

public SendMessage(BrokerFacade brokerFacade)
Method Detail

handleRequest

public org.springframework.web.servlet.ModelAndView handleRequest(HttpServletRequest request,
                                                                  HttpServletResponse response)
                                                           throws Exception
Specified by:
handleRequest in interface org.springframework.web.servlet.mvc.Controller
Throws:
Exception

sendMessages

protected void sendMessages(HttpServletRequest request,
                            WebClient client,
                            ActiveMQDestination dest)
                     throws JMSException
Throws:
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 Message createMessage(WebClient client,
                                HttpServletRequest request)
                         throws JMSException
Throws:
JMSException

appendHeaders

protected void appendHeaders(Message message,
                             HttpServletRequest request)
                      throws JMSException
Throws:
JMSException

isValidPropertyName

protected boolean isValidPropertyName(String name)

getSupportedHttpMethods

public String[] getSupportedHttpMethods()
Overrides:
getSupportedHttpMethods in class DestinationFacade


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.