Class WebEndpointServletAdapter
- java.lang.Object
-
- com.slack.api.bolt.jakarta_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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebEndpointRequestbuildSlackRequest(jakarta.servlet.http.HttpServletRequest req)protected StringdoReadRequestBodyAsString(jakarta.servlet.http.HttpServletRequest req)voidwriteResponse(jakarta.servlet.http.HttpServletResponse resp, Response slackResp)
-
-
-
Constructor Detail
-
WebEndpointServletAdapter
public WebEndpointServletAdapter(AppConfig appConfig)
-
-
Method Detail
-
buildSlackRequest
public WebEndpointRequest buildSlackRequest(jakarta.servlet.http.HttpServletRequest req) throws IOException
- Throws:
IOException
-
doReadRequestBodyAsString
protected String doReadRequestBodyAsString(jakarta.servlet.http.HttpServletRequest req) throws IOException
- Throws:
IOException
-
writeResponse
public void writeResponse(jakarta.servlet.http.HttpServletResponse resp, Response slackResp) throws IOException- Throws:
IOException
-
-