|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javaWebGen.WebController
public abstract class WebController
Title: WebController
Description: Generic Web based controller that should be extended to process web forms using the correct model classes for the business logic
| Field Summary | |
|---|---|
static java.lang.String |
SOAP_BODY
|
static java.lang.String |
SOAP_FOOTER
|
static java.lang.String |
SOAP_HEADER
|
| Constructor Summary | |
|---|---|
WebController()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
doJSON(javax.servlet.http.HttpServletRequest req)
returns JSON results to the caller |
protected java.lang.String |
doSOAP(javax.servlet.http.HttpServletRequest req)
returns SOAP XML results to the caller |
abstract java.lang.String |
exec(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
static java.lang.String |
getCmd(javax.servlet.http.HttpServletRequest req)
get the current command passed on the request |
protected static java.lang.Object |
getFormBean(javax.servlet.http.HttpServletRequest req)
get the request page on the request |
static java.lang.String |
getPage(javax.servlet.http.HttpServletRequest req)
get the request page on the request |
protected javax.servlet.http.HttpSession |
getSession(javax.servlet.http.HttpServletRequest req)
return current session |
protected WebSession |
getWebSession(javax.servlet.http.HttpSession session)
get WebSession object from session |
boolean |
valSession(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.http.HttpSession session)
validate Session and check login etc |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOAP_HEADER
public static final java.lang.String SOAP_FOOTER
public static final java.lang.String SOAP_BODY
| Constructor Detail |
|---|
public WebController()
| Method Detail |
|---|
public abstract java.lang.String exec(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws WebAppException
req - res -
WebAppExceptionprotected WebSession getWebSession(javax.servlet.http.HttpSession session)
session -
protected javax.servlet.http.HttpSession getSession(javax.servlet.http.HttpServletRequest req)
req -
public boolean valSession(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
javax.servlet.http.HttpSession session)
req - session -
public static java.lang.String getCmd(javax.servlet.http.HttpServletRequest req)
req - request
public static java.lang.String getPage(javax.servlet.http.HttpServletRequest req)
req - request
protected static java.lang.Object getFormBean(javax.servlet.http.HttpServletRequest req)
req - request
protected java.lang.String doJSON(javax.servlet.http.HttpServletRequest req)
throws javax.servlet.ServletException
error
javax.servlet.ServletException
protected java.lang.String doSOAP(javax.servlet.http.HttpServletRequest req)
throws javax.servlet.ServletException
error
javax.servlet.ServletException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||