public abstract class AuthenticatingWebSocketServlet
extends org.apache.catalina.websocket.WebSocketServlet
| Constructor and Description |
|---|
AuthenticatingWebSocketServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.catalina.websocket.StreamInbound |
authenticatedConnect(UserContext context,
javax.servlet.http.HttpServletRequest request,
String protocol)
Function called after the credentials given in the request (if any)
are authenticated.
|
org.apache.catalina.websocket.StreamInbound |
createWebSocketInbound(String protocol,
javax.servlet.http.HttpServletRequest request) |
void |
init() |
protected String |
selectSubProtocol(List<String> subProtocols) |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
service in class javax.servlet.http.HttpServletIOExceptionjavax.servlet.ServletExceptionprotected String selectSubProtocol(List<String> subProtocols)
selectSubProtocol in class org.apache.catalina.websocket.WebSocketServletpublic org.apache.catalina.websocket.StreamInbound createWebSocketInbound(String protocol, javax.servlet.http.HttpServletRequest request)
createWebSocketInbound in class org.apache.catalina.websocket.WebSocketServletprotected abstract org.apache.catalina.websocket.StreamInbound authenticatedConnect(UserContext context, javax.servlet.http.HttpServletRequest request, String protocol)
context - The current UserContext.request - The HttpServletRequest being serviced.protocol - The protocol being used over the WebSocket connection.Copyright © 2015. All rights reserved.