Package com.slack.api.bolt.util
Class Responder
java.lang.Object
com.slack.api.bolt.util.Responder
- Direct Known Subclasses:
Responder
HTTP response sender using response_url.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsend
(ActionResponse response) Sends an HTTP response for an action.send
(SlashCommandResponse response) Sends an HTTP response for a slash command invocation.send
(InputBlockResponse response) Sends an HTTP response for an input block in a modal.
-
Constructor Details
-
Responder
Initializes with a valid response_url- Parameters:
slack
- the underlying senderresponseUrl
- the response_url in a payload
-
-
Method Details
-
send
Sends an HTTP response for a slash command invocation.- Throws:
IOException
-
send
Sends an HTTP response for an action.- Throws:
IOException
-
send
Sends an HTTP response for an input block in a modal.- Throws:
IOException
-
sendToAction
public WebhookResponse sendToAction(RequestConfigurator<ActionResponse.ActionResponseBuilder> body) throws IOException - Throws:
IOException
-
sendToCommand
public WebhookResponse sendToCommand(RequestConfigurator<SlashCommandResponse.SlashCommandResponseBuilder> body) throws IOException - Throws:
IOException
-
sendFromModal
public WebhookResponse sendFromModal(RequestConfigurator<InputBlockResponse.InputBlockResponseBuilder> body) throws IOException - Throws:
IOException
-