|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.ix.jspTutorial.controller.RequestProcessor
This class processes all requests recived from the applications main entry point and generates all depending and necessary events
| Field Summary | |
static java.lang.String |
vcid
version of the source |
| Fields inherited from interface de.ix.jspTutorial.constants.RequestParameterConstants |
CUS_ADDRESS1,
CUS_ADDRESS2,
CUS_EMAIL,
CUS_FIRSTNAME,
CUS_ID,
CUS_LASTNAME,
CUS_TOWN,
CUS_ZIP,
DO_ACTION,
DO_CHOICE,
DO_CHOICE_PARAMS,
DO_LOGIN,
DO_LOGIN_PARAMS,
DO_LOGOUT,
DO_ORDER,
DO_ORDER_PARAMS,
ERROR,
INGREDIENT_IDS,
MIP_ERROR,
PIZZA_ID,
REQUESTED_URL,
SHOW_CHOICE,
SHOW_LOGIN |
| Constructor Summary | |
RequestProcessor()
|
|
| Method Summary | |
void |
checkParameters(java.lang.String action,
javax.servlet.http.HttpServletRequest request)
Method to check all given parameters depending on the current request type. |
void |
handleChoiseEvent(javax.servlet.http.HttpServletRequest request)
Handler-method for choice request. |
void |
handleEvent(java.lang.String action,
javax.servlet.http.HttpServletRequest request)
Method to delegate the differnt request types to specialized handler-method. |
void |
handleLoginEvent(javax.servlet.http.HttpServletRequest request)
Handler-method for login request. |
void |
handleLogoutEvent(javax.servlet.http.HttpServletRequest request)
Handler-method for logout request. |
void |
handleOrderEvent(javax.servlet.http.HttpServletRequest request)
Handler-method for order request. |
void |
init(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpSession httpSession)
This method initializes all private attributes of the the given RequestProcessor instance |
void |
log(java.lang.String msg)
Output of a message to the servlet log of the container. |
void |
log(java.lang.String message,
java.lang.Throwable throwable)
Put the given message and exception the servlet log of the container. |
void |
processRequest(javax.servlet.http.HttpServletRequest request)
This method proceesses the actual http request. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static java.lang.String vcid
| Constructor Detail |
public RequestProcessor()
| Method Detail |
public void init(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpSession httpSession)
RequestProcessor instanceservletContext - actual Servlet ContexthttpSession - actual HTTP Session
public void processRequest(javax.servlet.http.HttpServletRequest request)
throws de.ix.jspTutorial.exception.MissingInputParamsException
request - actual HttpServletRequestpublic void handleLogoutEvent(javax.servlet.http.HttpServletRequest request)
request - Current httpRequestpublic void handleLoginEvent(javax.servlet.http.HttpServletRequest request)
request - Current httpRequestpublic void handleChoiseEvent(javax.servlet.http.HttpServletRequest request)
PersonalPizza
with the help of the current request.request - Current httpRequestpublic void handleOrderEvent(javax.servlet.http.HttpServletRequest request)
request - Current httpRequest
public void handleEvent(java.lang.String action,
javax.servlet.http.HttpServletRequest request)
action - Current request typerequest - Current httpRequest
public void checkParameters(java.lang.String action,
javax.servlet.http.HttpServletRequest request)
throws de.ix.jspTutorial.exception.MissingInputParamsException
action - Current request typerequest - Current httpRequestpublic void log(java.lang.String msg)
msg - The message
public void log(java.lang.String message,
java.lang.Throwable throwable)
message - Error messagethrowable - Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||