Package com.slack.api.bolt.servlet
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.StringdoReadRequestBodyAsString(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 voidwriteResponse(javax.servlet.http.HttpServletResponse resp, Response slackResp)
-
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
-