Package com.slack.api.bolt.context
Interface InputBlockRespondUtility
-
- All Known Implementing Classes:
ViewSubmissionContext
public interface InputBlockRespondUtility
This utility provides respond method functionality for view_submission request handlers.The `response_urls` in a view_submission payload can exist only when the modal view has an input block with response_url_enabled: true.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InputBlockResponseSender
getFirstResponder()
InputBlockResponseSender
getResponder(String blockId, String actionId)
List<ViewSubmissionPayload.ResponseUrl>
getResponseUrls()
Slack
getSlack()
default WebhookResponse
respond(InputBlockResponse response)
default WebhookResponse
respond(BuilderConfigurator<InputBlockResponse.InputBlockResponseBuilder> builder)
default WebhookResponse
respond(String text)
default WebhookResponse
respond(List<LayoutBlock> blocks)
-
-
-
Method Detail
-
getSlack
Slack getSlack()
-
getResponder
InputBlockResponseSender getResponder(String blockId, String actionId)
-
getFirstResponder
InputBlockResponseSender getFirstResponder()
-
getResponseUrls
List<ViewSubmissionPayload.ResponseUrl> getResponseUrls()
-
respond
default WebhookResponse respond(String text) throws IOException
- Throws:
IOException
-
respond
default WebhookResponse respond(List<LayoutBlock> blocks) throws IOException
- Throws:
IOException
-
respond
default WebhookResponse respond(InputBlockResponse response) throws IOException
- Throws:
IOException
-
respond
default WebhookResponse respond(BuilderConfigurator<InputBlockResponse.InputBlockResponseBuilder> builder) throws IOException
- Throws:
IOException
-
-