类 ServletMain
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.gdxsoft.easyweb.script.servlets.ServletMain
- 所有已实现的接口:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class ServletMain
extends javax.servlet.http.HttpServlet
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddestroy()Destruction of the servlet.voiddoDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) The doGet method of the servlet.voiddoPatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) voiddoPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) The doPost method of the servlet.voiddoPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Returns information about the servlet, such as author, version, and copyright.voidinit()Initialization of the servlet.static voidvoidoutContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String cnt) voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) voidshow(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) 从类继承的方法 javax.servlet.http.HttpServlet
doHead, doOptions, doTrace, getLastModified, service从类继承的方法 javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
构造器详细资料
-
ServletMain
public ServletMain()Constructor of the object.
-
-
方法详细资料
-
initEwaInstances
public static void initEwaInstances() -
init
public void init() throws javax.servlet.ServletExceptionInitialization of the servlet.- 覆盖:
init在类中javax.servlet.GenericServlet- 抛出:
javax.servlet.ServletException- if an error occurs
-
destroy
public void destroy()Destruction of the servlet.- 指定者:
destroy在接口中javax.servlet.Servlet- 覆盖:
destroy在类中javax.servlet.GenericServlet
-
service
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - 覆盖:
service在类中javax.servlet.http.HttpServlet- 抛出:
javax.servlet.ServletExceptionIOException
-
doGet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException The doGet method of the servlet.
This method is called when a form has its tag value method equals to get.- 覆盖:
doGet在类中javax.servlet.http.HttpServlet- 参数:
request- the request send by the client to the serverresponse- the response send by the server to the client- 抛出:
javax.servlet.ServletException- if an error occurredIOException- if an error occurred
-
doPost
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException The doPost method of the servlet.
This method is called when a form has its tag value method equals to post.- 覆盖:
doPost在类中javax.servlet.http.HttpServlet- 参数:
request- the request send by the client to the serverresponse- the response send by the server to the client- 抛出:
javax.servlet.ServletException- if an error occurredIOException- if an error occurred
-
doPut
public void doPut(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - 覆盖:
doPut在类中javax.servlet.http.HttpServlet- 抛出:
javax.servlet.ServletExceptionIOException
-
doDelete
public void doDelete(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - 覆盖:
doDelete在类中javax.servlet.http.HttpServlet- 抛出:
javax.servlet.ServletExceptionIOException
-
doPatch
public void doPatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - 抛出:
javax.servlet.ServletExceptionIOException
-
outContent
public void outContent(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String cnt) throws javax.servlet.ServletException, IOException - 抛出:
javax.servlet.ServletExceptionIOException
-
show
public void show(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - 抛出:
javax.servlet.ServletExceptionIOException
-
getServletInfo
Returns information about the servlet, such as author, version, and copyright.- 指定者:
getServletInfo在接口中javax.servlet.Servlet- 覆盖:
getServletInfo在类中javax.servlet.GenericServlet- 返回:
- String information about this servlet
-