|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.jboss.as.websockets.servlet.WebSocketServlet
public abstract class WebSocketServlet
A very, very early and experimental spike to get websockets working in JBoss AS. Designed for JBoss AS 7.1.2 and later.
Constructor Summary | |
---|---|
protected |
WebSocketServlet()
|
protected |
WebSocketServlet(String protocolName)
Set the protocol name to be returned in the Sec-WebSocket-Protocol header attribute during negotiation. |
Method Summary | |
---|---|
protected void |
doDelete(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doHead(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doOptions(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doPut(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
protected void |
doTrace(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
void |
event(org.jboss.servlet.http.HttpEvent event)
Handle an event from the web container. |
protected long |
getLastModified(javax.servlet.http.HttpServletRequest req)
|
protected void |
onReceivedFrame(WebSocket socket)
Called when a new text frame is received. |
protected void |
onSocketClosed(WebSocket socket)
Called when the websocket is closed. |
protected void |
onSocketOpened(WebSocket socket)
Called when a new websocket is opened. |
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
void |
service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
|
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.Servlet |
---|
destroy, getServletConfig, getServletInfo, init |
Constructor Detail |
---|
protected WebSocketServlet(String protocolName)
protocolName
- the protocol string to be advertised in the Sec-WebSocket-Protocol header when clients negotiate
a new websocket.protected WebSocketServlet()
Method Detail |
---|
public final void event(org.jboss.servlet.http.HttpEvent event) throws IOException, javax.servlet.ServletException
event
in interface org.jboss.servlet.http.HttpEventServlet
event
-
IOException
javax.servlet.ServletException
protected final void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected final long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified
in class javax.servlet.http.HttpServlet
protected final void doHead(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doHead
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected final void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected final void doPut(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPut
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected final void doDelete(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doDelete
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected final void doOptions(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doOptions
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected final void doTrace(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doTrace
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected final void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
public final void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) throws javax.servlet.ServletException, IOException
service
in interface javax.servlet.Servlet
service
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void onSocketOpened(WebSocket socket) throws IOException
socket
- A reference to the WebSocket writer interface
IOException
protected void onSocketClosed(WebSocket socket) throws IOException
IOException
protected void onReceivedFrame(WebSocket socket) throws IOException
socket
- A reference to the WebSocket writer interface associated with this socket.
IOException
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |