com.ibm.websphere.samples.asynchbeans.wstrader.tickstream.web
Class BaseAsynchServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.ibm.websphere.samples.asynchbeans.wstrader.tickstream.web.BaseAsynchServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
LoginServlet, LogoutServlet, PingServlet, StreamingServlet, UpdateServlet

public class BaseAsynchServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Constructor Summary
BaseAsynchServlet()
           
 
Method Summary
 StreamClientState createClientState(java.lang.String loginid)
           
 StreamClientState getClientState(java.lang.String loginid)
           
 java.lang.String getCookieValue(javax.servlet.http.Cookie[] cookies, java.lang.String cookieName, java.lang.String cookieKey)
          Returns a cookie value for a given array of cookies, a cookie name and a key.
 void init()
          Initialize the servlet.
 void setTextResponse(javax.servlet.http.HttpServletResponse resp, boolean flushbuffer)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseAsynchServlet

public BaseAsynchServlet()
Method Detail

init

public void init()
Initialize the servlet. Just get a reference to our Application State object.

Overrides:
init in class javax.servlet.GenericServlet
See Also:
GenericServlet.init()

getClientState

public StreamClientState getClientState(java.lang.String loginid)

createClientState

public StreamClientState createClientState(java.lang.String loginid)

setTextResponse

public void setTextResponse(javax.servlet.http.HttpServletResponse resp,
                            boolean flushbuffer)
                     throws java.io.IOException
Throws:
java.io.IOException

getCookieValue

public java.lang.String getCookieValue(javax.servlet.http.Cookie[] cookies,
                                       java.lang.String cookieName,
                                       java.lang.String cookieKey)
Returns a cookie value for a given array of cookies, a cookie name and a key.