public class SecurePingHandlerServlet extends HttpServlet
Modifier and Type | Class and Description |
---|---|
private class |
SecurePingHandlerServlet.Handler |
private class |
SecurePingHandlerServlet.IsCallerInRole |
private class |
SecurePingHandlerServlet.Logout |
private class |
SecurePingHandlerServlet.MainMenu |
private class |
SecurePingHandlerServlet.Ping |
private class |
SecurePingHandlerServlet.PingAdmin |
private class |
SecurePingHandlerServlet.PingAll |
private class |
SecurePingHandlerServlet.PingExcluded |
private class |
SecurePingHandlerServlet.PingUser |
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_TYPE |
static String |
COMMAND_PARAM |
protected static String |
DISPLAY_EXCEPTION_URL |
static String |
EXCEPTION_PARAM |
static String |
HANDLER_TYPE_KEY |
private Map<String,SecurePingHandlerServlet.Handler> |
handlers |
static String |
IS_CALLER_IN_ROLE_COMMAND |
private static org.slf4j.Logger |
logger |
static String |
LOGOUT_COMMAND |
static String |
MAINMENU_COMMAND |
static String |
PING_ADMIN_COMMAND |
static String |
PING_ALL_COMMAND |
static String |
PING_EXCLUDED_COMMAND |
static String |
PING_USER_COMMAND |
private SecurePing |
securePingServer |
private static String |
UNKNOWN_COMMAND_URL |
static String |
USER_TYPE |
Constructor and Description |
---|
SecurePingHandlerServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response) |
void |
init() |
private void |
initServerRef(ServletConfig config) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
private static org.slf4j.Logger logger
private Map<String,SecurePingHandlerServlet.Handler> handlers
private SecurePing securePingServer
public static final String COMMAND_PARAM
public static final String EXCEPTION_PARAM
public static final String HANDLER_TYPE_KEY
public static final String ADMIN_TYPE
public static final String USER_TYPE
public static final String MAINMENU_COMMAND
public static final String IS_CALLER_IN_ROLE_COMMAND
public static final String PING_ALL_COMMAND
public static final String PING_USER_COMMAND
public static final String PING_ADMIN_COMMAND
public static final String PING_EXCLUDED_COMMAND
public static final String LOGOUT_COMMAND
protected static final String DISPLAY_EXCEPTION_URL
private static final String UNKNOWN_COMMAND_URL
public void init() throws ServletException
init
in class GenericServlet
ServletException
private void initServerRef(ServletConfig config) throws Exception
Exception
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
ServletException
IOException
public void destroy()
destroy
in interface Servlet
destroy
in class GenericServlet
Copyright © 2015 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.