Class WebEndpointServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.slack.api.bolt.jakarta_servlet.WebEndpointServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class WebEndpointServlet
extends jakarta.servlet.http.HttpServlet
The default Servlet for additional web endpoints.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWebEndpointServlet(WebEndpoint endpoint, WebEndpointHandler handler, AppConfig config) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voidrespondAsError(jakarta.servlet.http.HttpServletResponse resp, int status, String json) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Constructor Details
-
WebEndpointServlet
-
-
Method Details
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException - Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
IOException
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException - Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
IOException
-
respondAsError
protected void respondAsError(jakarta.servlet.http.HttpServletResponse resp, int status, String json) throws IOException - Throws:
IOException
-