public class PortfolioPublishServlet extends MessageServletSupport
| Constructor and Description |
|---|
PortfolioPublishServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createStockText(String stock) |
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected String |
escape(String text) |
protected int |
getNumberOfMessages(javax.servlet.http.HttpServletRequest request) |
void |
init() |
protected double |
mutatePrice(double price) |
protected void |
sendMessage(WebClient client,
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 PortfolioPublishServlet()
public 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, IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprotected void sendMessage(WebClient client, String[] stocks) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected String createStockText(String stock)
protected double mutatePrice(double price)
protected int getNumberOfMessages(javax.servlet.http.HttpServletRequest request)
protected String escape(String text) throws IOException
IOExceptionCopyright © 2005–2019 FuseSource, Corp.. All rights reserved.