Class WebEndpointServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.slack.api.bolt.servlet.WebEndpointServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class WebEndpointServlet
extends javax.servlet.http.HttpServlet
The default Servlet for additional web endpoints.
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    WebEndpointServlet​(WebEndpoint endpoint, WebEndpointHandler handler, AppConfig config)  
  • Method Summary

    Modifier and Type Method Description
    protected void doGet​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
    protected void doPost​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)  
    protected void respondAsError​(javax.servlet.http.HttpServletResponse resp, int status, java.lang.String json)  

    Methods inherited from class javax.servlet.http.HttpServlet

    doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service

    Methods inherited from class javax.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • doGet

      protected void doGet​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws java.io.IOException
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Throws:
      java.io.IOException
    • doPost

      protected void doPost​(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws java.io.IOException
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Throws:
      java.io.IOException
    • respondAsError

      protected void respondAsError​(javax.servlet.http.HttpServletResponse resp, int status, java.lang.String json) throws java.io.IOException
      Throws:
      java.io.IOException