|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jdc.javax.servlet.http.HttpServlet
|
+--com.jdc.http.HttpServlet
|
+--com.jdc.http.mvc.HttpController
HttpController implements servlet methods common to all web application servlets. All web application servlets should extend this servlet class.
| Field Summary | |
static String |
ERROR_PAGE
The default error page. |
protected Logger |
log
A logging object. |
protected StringHelper |
string
A string helper object. |
| Constructor Summary | |
HttpController()
|
|
| Method Summary | |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Handles HTTP GET requests. |
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Handles HTTP POST requests. |
protected abstract void |
doRequest(HttpServletRequest request,
HttpServletResponse response)
Processes web application servlet requests. |
String |
getFullHostName(HttpServletRequest request)
Returns the full (complete) host name. |
String |
getRequestURI(HttpServletRequest request)
Gets current request Uniform Resource Identifier (URI). |
HttpSession |
getSession(HttpServletRequest request)
Returns the HTTP user session object. |
HttpUserProfile |
getUser(HttpServletRequest request)
Returns the HTTP user profile object. |
void |
init(ServletConfig config)
Initializes the web application servlet. |
| Methods inherited from class com.jdc.http.HttpServlet |
getRequestDispatcher, getServletConfig, getServletContext, getServletName, getWebAppPathName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ERROR_PAGE
protected StringHelper string
protected Logger log
| Constructor Detail |
public HttpController()
| Method Detail |
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
ServletException
IOException(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
ServletException
IOException(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
protected abstract void doRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
ServletException
IOExceptionpublic String getFullHostName(HttpServletRequest request)
public String getRequestURI(HttpServletRequest request)
public HttpSession getSession(HttpServletRequest request)
public HttpUserProfile getUser(HttpServletRequest request)
public void init(ServletConfig config)
throws ServletException
init in class HttpServletServletException
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||