Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server.servlet
Class JettyContinuationsServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.jboss.errai.bus.server.servlet.AbstractErraiServlet
              extended by org.jboss.errai.bus.server.servlet.JettyContinuationsServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class JettyContinuationsServlet
extends AbstractErraiServlet

The JettyContinuationsServlet provides the HTTP-protocol gateway between the server bus and the client buses, using Jetty Continuations.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.errai.bus.server.servlet.AbstractErraiServlet
AbstractErraiServlet.ConnectionPhase
 
Field Summary
 
Fields inherited from class org.jboss.errai.bus.server.servlet.AbstractErraiServlet
service, sessionProvider, SSE_TERMINATION_BYTES
 
Constructor Summary
JettyContinuationsServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          Called by the server (via the service method) to allow a servlet to handle a GET request by supplying a response
protected  void doPost(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
          Called by the server (via the service method) to allow a servlet to handle a POST request, by sending the request.
 
Methods inherited from class org.jboss.errai.bus.server.servlet.AbstractErraiServlet
destroy, getClientId, getConnectionPhase, getLongPollTimeout, getSSETimeout, init, initAsFilter, isLongPollingEnabled, isSSERequest, prepareCometPoll, prepareSSE, prepareSSEContinue, sendDisconnectDueToSessionExpiry, sendDisconnectWithReason, shouldWait, writeExceptionToOutputStream, writeToOutputStream
 
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
 

Constructor Detail

JettyContinuationsServlet

public JettyContinuationsServlet()
Method Detail

doGet

protected void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
                     javax.servlet.http.HttpServletResponse httpServletResponse)
              throws javax.servlet.ServletException,
                     IOException
Called by the server (via the service method) to allow a servlet to handle a GET request by supplying a response

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
httpServletRequest - - object that contains the request the client has made of the servlet
httpServletResponse - - object that contains the response the servlet sends to the client
Throws:
IOException - - if an input or output error is detected when the servlet handles the GET request
javax.servlet.ServletException - - if the request for the GET could not be handled

doPost

protected void doPost(javax.servlet.http.HttpServletRequest httpServletRequest,
                      javax.servlet.http.HttpServletResponse httpServletResponse)
               throws javax.servlet.ServletException,
                      IOException
Called by the server (via the service method) to allow a servlet to handle a POST request, by sending the request.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
httpServletRequest - - object that contains the request the client has made of the servlet
httpServletResponse - - object that contains the response the servlet sends to the client
Throws:
IOException - - if an input or output error is detected when the servlet handles the request
javax.servlet.ServletException - - if the request for the POST could not be handled

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.