Package com.slack.api.bolt.servlet
Class SlackAppServletAdapter
java.lang.Object
com.slack.api.bolt.servlet.SlackAppServletAdapter
public class SlackAppServletAdapter
extends java.lang.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
Modifier and Type Method Description Request<?>buildSlackRequest(javax.servlet.http.HttpServletRequest req)protected java.lang.StringdoReadRequestBodyAsString(javax.servlet.http.HttpServletRequest req)voidwriteResponse(javax.servlet.http.HttpServletResponse resp, Response slackResp)
-
Constructor Details
-
Method Details
-
buildSlackRequest
public Request<?> 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
-