public class SellerHandlerServlet extends HttpServlet
Modifier and Type | Class and Description |
---|---|
private class |
SellerHandlerServlet.AdminMenu |
private class |
SellerHandlerServlet.CreateAccount |
private class |
SellerHandlerServlet.GetItems |
private class |
SellerHandlerServlet.Handler |
private class |
SellerHandlerServlet.Logout |
private class |
SellerHandlerServlet.SellProduct |
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_TYPE |
static String |
COMMAND_PARAM |
static String |
CREATEACCOUNT_COMMAND |
protected static String |
DISPLAY_EXCEPTION_URL |
static String |
EXCEPTION_PARAM |
static String |
GETITEMS_COMMAND |
static String |
HANDLER_TYPE_KEY |
private Map<String,SellerHandlerServlet.Handler> |
handlers |
private static org.apache.commons.logging.Log |
log |
static String |
LOGOUT_COMMAND |
static String |
MAINMENU_COMMAND |
private Seller |
seller |
static String |
SELLPRODUCT_COMMAND |
private static String |
UNKNOWN_COMMAND_URL |
static String |
USER_TYPE |
private UserMgmt |
userMgmt |
Constructor and Description |
---|
SellerHandlerServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response) |
void |
init() |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
private static org.apache.commons.logging.Log log
private Map<String,SellerHandlerServlet.Handler> handlers
private Seller seller
private UserMgmt userMgmt
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 CREATEACCOUNT_COMMAND
public static final String SELLPRODUCT_COMMAND
public static final String GETITEMS_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
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.