Class WebEndpointServletAdapter

java.lang.Object
com.slack.api.bolt.servlet.WebEndpointServletAdapter

public class WebEndpointServletAdapter
extends java.lang.Object
An adapter that converts requests for additional web endpoints and translates the Response object to the actual Servlet HTTP response.
  • Constructor Summary

    Constructors 
    Constructor Description
    WebEndpointServletAdapter​(AppConfig appConfig)  
  • Method Summary

    Modifier and Type Method Description
    WebEndpointRequest buildSlackRequest​(javax.servlet.http.HttpServletRequest req)  
    protected java.lang.String doReadRequestBodyAsString​(javax.servlet.http.HttpServletRequest req)  
    void writeResponse​(javax.servlet.http.HttpServletResponse resp, Response slackResp)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • buildSlackRequest

      public WebEndpointRequest buildSlackRequest​(javax.servlet.http.HttpServletRequest req) throws java.io.IOException
      Throws:
      java.io.IOException
    • doReadRequestBodyAsString

      protected java.lang.String doReadRequestBodyAsString​(javax.servlet.http.HttpServletRequest req) throws java.io.IOException
      Throws:
      java.io.IOException
    • writeResponse

      public void writeResponse​(javax.servlet.http.HttpServletResponse resp, Response slackResp) throws java.io.IOException
      Throws:
      java.io.IOException