Package com.slack.api.bolt.servlet
Class SlackAppServletAdapter
- java.lang.Object
-
- com.slack.api.bolt.servlet.SlackAppServletAdapter
-
public class SlackAppServletAdapter extends Object
An adapter that converts requests from the Slack API server and translates the Response object to the actual Servlet HTTP response.
-
-
Constructor Summary
Constructors Constructor Description SlackAppServletAdapter(AppConfig appConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Request<?>buildSlackRequest(javax.servlet.http.HttpServletRequest req)protected StringdoReadRequestBodyAsString(javax.servlet.http.HttpServletRequest req)voidwriteResponse(javax.servlet.http.HttpServletResponse resp, Response slackResp)
-
-
-
Constructor Detail
-
SlackAppServletAdapter
public SlackAppServletAdapter(AppConfig appConfig)
-
-
Method Detail
-
buildSlackRequest
public Request<?> buildSlackRequest(javax.servlet.http.HttpServletRequest req) throws IOException
- Throws:
IOException
-
doReadRequestBodyAsString
protected String doReadRequestBodyAsString(javax.servlet.http.HttpServletRequest req) throws IOException
- Throws:
IOException
-
writeResponse
public void writeResponse(javax.servlet.http.HttpServletResponse resp, Response slackResp) throws IOException- Throws:
IOException
-
-