com.glines.socketio.server
Class SocketIOServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.glines.socketio.server.SocketIOServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public abstract class SocketIOServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
static int BUFFER_SIZE_DEFAULT
           
static String BUFFER_SIZE_INIT_PARAM
           
static int MAX_IDLE_TIME_DEFAULT
           
static String MAX_IDLE_TIME_INIT_PARAM
           
 
Constructor Summary
SocketIOServlet()
           
 
Method Summary
 void destroy()
           
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
protected abstract  SocketIOInbound doSocketIOConnect(javax.servlet.http.HttpServletRequest request)
          Returns an instance of SocketIOInbound or null if the connection is to be denied.
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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
 

Field Detail

BUFFER_SIZE_INIT_PARAM

public static final String BUFFER_SIZE_INIT_PARAM
See Also:
Constant Field Values

MAX_IDLE_TIME_INIT_PARAM

public static final String MAX_IDLE_TIME_INIT_PARAM
See Also:
Constant Field Values

BUFFER_SIZE_DEFAULT

public static final int BUFFER_SIZE_DEFAULT
See Also:
Constant Field Values

MAX_IDLE_TIME_DEFAULT

public static final int MAX_IDLE_TIME_DEFAULT
See Also:
Constant Field Values
Constructor Detail

SocketIOServlet

public SocketIOServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp)
               throws javax.servlet.ServletException,
                      IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

doSocketIOConnect

protected abstract SocketIOInbound doSocketIOConnect(javax.servlet.http.HttpServletRequest request)
Returns an instance of SocketIOInbound or null if the connection is to be denied. The value of cookies and protocols may be null.



Copyright © 2010-2011. All Rights Reserved.