Class ServletAdapterOps

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

public class ServletAdapterOps
extends java.lang.Object
Common utilities for Servlet compatibilities.
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String doReadRequestBodyAsString​(javax.servlet.http.HttpServletRequest req)  
    static java.util.Map<java.lang.String,​java.util.List<java.lang.String>> toHeaderMap​(javax.servlet.http.HttpServletRequest req)  
    static 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
  • Method Details

    • doReadRequestBodyAsString

      public static java.lang.String doReadRequestBodyAsString​(javax.servlet.http.HttpServletRequest req) throws java.io.IOException
      Throws:
      java.io.IOException
    • toHeaderMap

      public static java.util.Map<java.lang.String,​java.util.List<java.lang.String>> toHeaderMap​(javax.servlet.http.HttpServletRequest req)
    • writeResponse

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