public abstract class WebSocketServlet extends javax.servlet.http.HttpServlet implements WebSocketFactory.Acceptor
| Constructor and Description |
|---|
WebSocketServlet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkOrigin(javax.servlet.http.HttpServletRequest request,
String origin)
Checks the origin of an incoming WebSocket handshake request.
|
void |
destroy() |
void |
init() |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoWebSocketConnectpublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionGenericServlet.init()protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionHttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)public boolean checkOrigin(javax.servlet.http.HttpServletRequest request,
String origin)
WebSocketFactory.AcceptorChecks the origin of an incoming WebSocket handshake request.
checkOrigin in interface WebSocketFactory.Acceptorrequest - the incoming HTTP upgrade requestorigin - the origin URIpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.