public abstract class GetPostServlet extends HttpServlet
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTENT_TYPE |
Constructor and Description |
---|
GetPostServlet() |
GetPostServlet(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, doOptions, doPut, doTrace, getLastModified, service, service
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
public static final String DEFAULT_CONTENT_TYPE
public GetPostServlet()
public GetPostServlet(String contentType)
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doGet
in class HttpServlet
ServletException
IOException
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
doPost
in class HttpServlet
ServletException
IOException
protected abstract void doGetPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
ServletException
IOException