public abstract class ControllerServlet
extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
ControllerServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(java.lang.Object target,
java.lang.reflect.Method m,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doGetOrPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected java.lang.reflect.Method |
getMethod(java.lang.Object target,
java.lang.String methodName) |
protected java.lang.String |
getMethodName(javax.servlet.http.HttpServletRequest req) |
protected abstract void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected java.lang.String |
readPostData(javax.servlet.http.HttpServletRequest request) |
protected void |
writeError(javax.servlet.http.HttpServletResponse response,
int status,
java.lang.String message) |
protected void |
writeError(javax.servlet.http.HttpServletResponse response,
int status,
java.lang.String message,
java.lang.String stack) |
protected void |
writeResponse(javax.servlet.http.HttpServletResponse response,
java.lang.String data) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
doGet
in class javax.servlet.http.HttpServlet
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
doPost
in class javax.servlet.http.HttpServlet
protected void doGetOrPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void dispatch(java.lang.Object target, java.lang.reflect.Method m, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws com.breeze.webserver.ControllerServlet.ControllerException
com.breeze.webserver.ControllerServlet.ControllerException
protected java.lang.String readPostData(javax.servlet.http.HttpServletRequest request)
protected void writeResponse(javax.servlet.http.HttpServletResponse response, java.lang.String data)
protected void writeError(javax.servlet.http.HttpServletResponse response, int status, java.lang.String message)
protected void writeError(javax.servlet.http.HttpServletResponse response, int status, java.lang.String message, java.lang.String stack)
protected java.lang.reflect.Method getMethod(java.lang.Object target, java.lang.String methodName)
protected java.lang.String getMethodName(javax.servlet.http.HttpServletRequest req)
protected abstract void handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)