public class PortfolioPublishServlet extends MessageServletSupport
Constructor and Description |
---|
PortfolioPublishServlet() |
Modifier and Type | Method and Description |
---|---|
protected String |
createStockText(String stock) |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
protected String |
escape(String text) |
protected int |
getNumberOfMessages(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, isTopic
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
public PortfolioPublishServlet()
public void init() throws ServletException
init
in class GenericServlet
ServletException
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
protected void sendMessage(WebClient client, String[] stocks) throws JMSException
JMSException
protected String createStockText(String stock)
protected double mutatePrice(double price)
protected int getNumberOfMessages(HttpServletRequest request)
protected String escape(String text) throws IOException
IOException
Copyright © 2005–2017 FuseSource, Corp.. All rights reserved.