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, isTopic
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected 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.HttpServlet
javax.servlet.ServletException
java.io.IOException
protected void sendMessage(WebClient client, java.lang.String[] stocks) throws javax.jms.JMSException
javax.jms.JMSException
protected 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.IOException
Copyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.