public abstract class AuthenticatingHttpServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
AuthenticatingHttpServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
authenticatedService(net.sourceforge.guacamole.net.auth.UserContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Function called after the credentials given in the request (if any)
are authenticated.
|
protected net.sourceforge.guacamole.net.auth.Credentials |
getCredentials(javax.servlet.http.HttpSession session)
Returns the credentials associated with the given session.
|
protected net.sourceforge.guacamole.net.auth.UserContext |
getUserContext(javax.servlet.http.HttpSession session)
Returns the UserContext associated with the given session.
|
void |
init() |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected net.sourceforge.guacamole.net.auth.Credentials getCredentials(javax.servlet.http.HttpSession session)
session - The session to retrieve credentials from.protected net.sourceforge.guacamole.net.auth.UserContext getUserContext(javax.servlet.http.HttpSession session)
session - The session to retrieve UserContext from.protected 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 abstract void authenticatedService(net.sourceforge.guacamole.net.auth.UserContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws net.sourceforge.guacamole.GuacamoleException
context - The current UserContext.request - The HttpServletRequest being serviced.response - An HttpServletResponse which controls the HTTP response
of this servlet.net.sourceforge.guacamole.GuacamoleException - If an error occurs that interferes with the
normal operation of this servlet.Copyright © 2013. All Rights Reserved.