Class ServletAdapterOps
- java.lang.Object
-
- com.slack.api.bolt.jakarta_servlet.ServletAdapterOps
-
public class ServletAdapterOps extends Object
Common utilities for Servlet compatibilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdoReadRequestBodyAsString(jakarta.servlet.http.HttpServletRequest req)static Map<String,List<String>>toHeaderMap(jakarta.servlet.http.HttpServletRequest req)static voidwriteResponse(jakarta.servlet.http.HttpServletResponse resp, Response slackResp)
-
-
-
Method Detail
-
doReadRequestBodyAsString
public static String doReadRequestBodyAsString(jakarta.servlet.http.HttpServletRequest req) throws IOException
- Throws:
IOException
-
toHeaderMap
public static Map<String,List<String>> toHeaderMap(jakarta.servlet.http.HttpServletRequest req)
-
writeResponse
public static void writeResponse(jakarta.servlet.http.HttpServletResponse resp, Response slackResp) throws IOException- Throws:
IOException
-
-