类 ServletApi
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.gdxsoft.easyweb.define.servlets.ServletApi
- 所有已实现的接口:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ServletApi
extends javax.servlet.http.HttpServlet
Servlet API for configuration management
Methods: - getConfXml: Get full XML configuration file - getConfItem: Get
specific configuration item - runConfItem: Copy configuration item -
updateConfItem: Update configuration item - login: Generate API token -
logout: Revoke API token
Authentication: - HMAC Signature (recommended for server-to-server) - JWT
Token (for client sessions) - Simple Token (legacy, not recommended)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
从类继承的方法 javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service从类继承的方法 javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
-
构造器详细资料
-
ServletApi
public ServletApi()
-
-
方法详细资料
-
destroy
public void destroy()- 指定者:
destroy在接口中javax.servlet.Servlet- 覆盖:
destroy在类中javax.servlet.GenericServlet
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - 覆盖:
doGet在类中javax.servlet.http.HttpServlet- 抛出:
javax.servlet.ServletExceptionIOException
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - 覆盖:
doPost在类中javax.servlet.http.HttpServlet- 抛出:
javax.servlet.ServletExceptionIOException
-
getServletInfo
- 指定者:
getServletInfo在接口中javax.servlet.Servlet- 覆盖:
getServletInfo在类中javax.servlet.GenericServlet
-
init
public void init() throws javax.servlet.ServletException- 覆盖:
init在类中javax.servlet.GenericServlet- 抛出:
javax.servlet.ServletException
-