Package com.slack.api.bolt.servlet
Class WebEndpointServletAdapter
java.lang.Object
com.slack.api.bolt.servlet.WebEndpointServletAdapter
public class WebEndpointServletAdapter extends Object
An adapter that converts requests for additional web endpoints
and translates the Response object to the actual Servlet HTTP response.
-
Constructor Summary
Constructors Constructor Description WebEndpointServletAdapter(AppConfig appConfig) -
Method Summary
Modifier and Type Method Description WebEndpointRequestbuildSlackRequest(javax.servlet.http.HttpServletRequest req)protected StringdoReadRequestBodyAsString(javax.servlet.http.HttpServletRequest req)voidwriteResponse(javax.servlet.http.HttpServletResponse resp, Response slackResp)
-
Constructor Details
-
Method Details
-
buildSlackRequest
public WebEndpointRequest 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
-