public class PortfolioPublishServlet extends MessageServletSupport
| Constructor and Description |
|---|
PortfolioPublishServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createStockText(java.lang.String stock) |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected java.lang.String |
escape(java.lang.String text) |
protected int |
getNumberOfMessages(javax.servlet.http.HttpServletRequest request) |
void |
init() |
protected double |
mutatePrice(double price) |
protected void |
sendMessage(WebClient client,
java.lang.String[] stocks) |
appendParametersToMessage, asBoolean, asBoolean, asDestination, asInt, asInteger, asLong, asLong, asString, getDestination, getDestination, getDestinationFromURI, getPostedMessageBody, getSelector, getSendPriority, getSendTimeToLive, init, isSendPersistent, isSync, isTopicdoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionprotected void sendMessage(WebClient client, java.lang.String[] stocks) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected java.lang.String createStockText(java.lang.String stock)
protected double mutatePrice(double price)
protected int getNumberOfMessages(javax.servlet.http.HttpServletRequest request)
protected java.lang.String escape(java.lang.String text)
throws java.io.IOException
java.io.IOExceptionCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.