public abstract class GetPostServlet extends HttpServlet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CONTENT_TYPE |
Constructor and Description |
---|
GetPostServlet() |
GetPostServlet(java.lang.String contentType) |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
protected abstract void |
doGetPost(HttpServletRequest request,
HttpServletResponse response) |
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
public static final java.lang.String DEFAULT_CONTENT_TYPE
public GetPostServlet()
public GetPostServlet(java.lang.String contentType)
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
doGet
in class HttpServlet
ServletException
java.io.IOException
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
doPost
in class HttpServlet
ServletException
java.io.IOException
protected abstract void doGetPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException