public class AuthnPortal extends HttpServlet
AuthnPortal is a public login/logout only Sakai portal - it provides a simple URL to login or logout and go somewhere if successful.
Modifier and Type | Field and Description |
---|---|
protected static String |
ATTR_ERROR
ThreadLocal attribute set while we are processing an error.
|
protected static String |
ATTR_SITE_PAGE
Session attribute root for storing a site's last page visited - just append the site id.
|
protected static int |
ERROR_GALLERY |
protected static int |
ERROR_SITE
Error response modes.
|
protected static int |
ERROR_WORKSITE |
Constructor and Description |
---|
AuthnPortal() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Shutdown the servlet.
|
protected void |
doError(HttpServletRequest req,
HttpServletResponse res,
Session session,
int mode) |
protected void |
doGet(HttpServletRequest req,
HttpServletResponse res)
Respond to navigation / access requests.
|
protected void |
doLogin(HttpServletRequest req,
HttpServletResponse res,
Session session,
String returnPath) |
protected void |
doLogout(HttpServletRequest req,
HttpServletResponse res,
Session session,
String returnPath) |
protected void |
doPost(HttpServletRequest req,
HttpServletResponse res)
Respond to data posting requests.
|
protected void |
endResponse(PrintWriter out) |
protected void |
forwardTool(ActiveTool tool,
HttpServletRequest req,
HttpServletResponse res,
Placement p,
String skin,
String toolContextPath,
String toolPathInfo)
Forward to the tool - but first setup JavaScript/CSS etc that the tool will render
|
protected String |
getScriptPath() |
String |
getServletInfo()
Access the Servlet's information display.
|
void |
init(ServletConfig config)
Initialize the servlet.
|
protected PrintWriter |
startResponse(HttpServletResponse res,
String title,
String skin) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
protected static final String ATTR_SITE_PAGE
protected static final String ATTR_ERROR
protected static final int ERROR_SITE
protected static final int ERROR_GALLERY
protected static final int ERROR_WORKSITE
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
protected void doError(HttpServletRequest req, HttpServletResponse res, Session session, int mode) throws IOException
IOException
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
doGet
in class HttpServlet
req
- The servlet request.res
- The servlet response.ServletException.
IOException.
ServletException
IOException
protected void doLogin(HttpServletRequest req, HttpServletResponse res, Session session, String returnPath) throws ToolException
ToolException
protected void doLogout(HttpServletRequest req, HttpServletResponse res, Session session, String returnPath) throws ToolException
ToolException
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
doPost
in class HttpServlet
req
- The servlet request.res
- The servlet response.ServletException.
IOException.
ServletException
IOException
protected void forwardTool(ActiveTool tool, HttpServletRequest req, HttpServletResponse res, Placement p, String skin, String toolContextPath, String toolPathInfo) throws ToolException
ToolException
protected void endResponse(PrintWriter out) throws IOException
IOException
public String getServletInfo()
getServletInfo
in interface Servlet
getServletInfo
in class GenericServlet
public void init(ServletConfig config) throws ServletException
init
in interface Servlet
init
in class GenericServlet
config
- The servlet config.ServletException
protected PrintWriter startResponse(HttpServletResponse res, String title, String skin) throws IOException
IOException
protected String getScriptPath()
Copyright © 2003–2019 The Sakai Foundation. All rights reserved.