org.granite.gravity.servlet3
Class GravityAsyncServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.granite.gravity.AbstractGravityServlet
              extended by org.granite.gravity.servlet3.GravityAsyncServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class GravityAsyncServlet
extends AbstractGravityServlet

Author:
Franck WOLFF
See Also:
Serialized Form

Constructor Summary
GravityAsyncServlet()
           
 
Method Summary
protected  Message[] deserialize(Gravity gravity, HttpServletRequest request)
           
protected  Message[] deserialize(Gravity gravity, HttpServletRequest request, InputStream is)
           
protected  Message[] deserializeJMFAMF(Gravity gravity, HttpServletRequest request, InputStream is)
           
 void destroy()
           
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
           
 void init(ServletConfig config)
           
protected  AsyncChannelFactory newAsyncChannelFactory(Gravity gravity, String contentType)
           
protected  void serialize(Gravity gravity, HttpServletResponse response, Message[] messages, String contentType)
           
protected  void serializeJMFAMF(Gravity gravity, HttpServletResponse response, Message[] messages)
           
 
Methods inherited from class org.granite.gravity.AbstractGravityServlet
cleanupRequest, doDelete, doGet, doHead, doOptions, doPut, doTrace, getConnectMessage, getLongPollingTimeout, initializeRequest, rejectJMFContentType, removeConnectMessage, serialize, setConnectMessage
 
Methods inherited from class javax.servlet.http.HttpServlet
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
 

Constructor Detail

GravityAsyncServlet

public GravityAsyncServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class AbstractGravityServlet
Throws:
ServletException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

destroy

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

newAsyncChannelFactory

protected AsyncChannelFactory newAsyncChannelFactory(Gravity gravity,
                                                     String contentType)
                                              throws ServletException
Throws:
ServletException

deserialize

protected Message[] deserialize(Gravity gravity,
                                HttpServletRequest request)
                         throws ClassNotFoundException,
                                IOException,
                                ServletException
Overrides:
deserialize in class AbstractGravityServlet
Throws:
ClassNotFoundException
IOException
ServletException

deserialize

protected Message[] deserialize(Gravity gravity,
                                HttpServletRequest request,
                                InputStream is)
                         throws ClassNotFoundException,
                                IOException,
                                ServletException
Overrides:
deserialize in class AbstractGravityServlet
Throws:
ClassNotFoundException
IOException
ServletException

deserializeJMFAMF

protected Message[] deserializeJMFAMF(Gravity gravity,
                                      HttpServletRequest request,
                                      InputStream is)
                               throws ClassNotFoundException,
                                      IOException,
                                      ServletException
Throws:
ClassNotFoundException
IOException
ServletException

serialize

protected void serialize(Gravity gravity,
                         HttpServletResponse response,
                         Message[] messages,
                         String contentType)
                  throws IOException,
                         ServletException
Throws:
IOException
ServletException

serializeJMFAMF

protected void serializeJMFAMF(Gravity gravity,
                               HttpServletResponse response,
                               Message[] messages)
                        throws IOException,
                               ServletException
Throws:
IOException
ServletException