public abstract class AuthenticatingWebSocketServlet
extends org.eclipse.jetty.websocket.WebSocketServlet
Constructor and Description |
---|
AuthenticatingWebSocketServlet() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.eclipse.jetty.websocket.WebSocket |
authenticatedConnect(UserContext context,
javax.servlet.http.HttpServletRequest request,
String protocol)
Function called after the credentials given in the request (if any)
are authenticated.
|
org.eclipse.jetty.websocket.WebSocket |
doWebSocketConnect(javax.servlet.http.HttpServletRequest request,
String protocol) |
void |
init() |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public void init() throws javax.servlet.ServletException
init
in class org.eclipse.jetty.websocket.WebSocketServlet
javax.servlet.ServletException
protected void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
service
in class org.eclipse.jetty.websocket.WebSocketServlet
IOException
javax.servlet.ServletException
public org.eclipse.jetty.websocket.WebSocket doWebSocketConnect(javax.servlet.http.HttpServletRequest request, String protocol)
protected abstract org.eclipse.jetty.websocket.WebSocket 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.