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, service
public void init() throws javax.servlet.ServletException
init
in class javax.servlet.GenericServlet
javax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
service
in class javax.servlet.http.HttpServlet
IOException
javax.servlet.ServletException
protected String selectSubProtocol(List<String> subProtocols)
selectSubProtocol
in class org.apache.catalina.websocket.WebSocketServlet
public org.apache.catalina.websocket.StreamInbound createWebSocketInbound(String protocol, javax.servlet.http.HttpServletRequest request)
createWebSocketInbound
in class org.apache.catalina.websocket.WebSocketServlet
protected 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.