org.jboss.errai.bus.server.servlet
Class JettyContinuationsServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.jboss.errai.bus.server.servlet.AbstractErraiServlet
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
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 |
JettyContinuationsServlet
public JettyContinuationsServlet()
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 servlethttpServletResponse
- - 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 servlethttpServletResponse
- - 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
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.