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.HttpServletThe default Servlet for additional web endpoints.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebEndpointServlet(WebEndpoint endpoint, WebEndpointHandler handler, AppConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, service
-
-
-
-
Constructor Detail
-
WebEndpointServlet
public WebEndpointServlet(WebEndpoint endpoint, WebEndpointHandler handler, AppConfig config)
-
-
Method Detail
-
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
-
-