Package com.slack.api.bolt.util
Class Responder
- java.lang.Object
-
- com.slack.api.bolt.util.Responder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookResponse
send(ActionResponse response)
Sends an HTTP response for an action.WebhookResponse
send(SlashCommandResponse response)
Sends an HTTP response for a slash command invocation.WebhookResponse
send(InputBlockResponse response)
Sends an HTTP response for an input block in a modal.WebhookResponse
sendFromModal(RequestConfigurator<InputBlockResponse.InputBlockResponseBuilder> body)
WebhookResponse
sendToAction(RequestConfigurator<ActionResponse.ActionResponseBuilder> body)
WebhookResponse
sendToCommand(RequestConfigurator<SlashCommandResponse.SlashCommandResponseBuilder> body)
-
-
-
Method Detail
-
send
public WebhookResponse send(SlashCommandResponse response) throws IOException
Sends an HTTP response for a slash command invocation.- Throws:
IOException
-
send
public WebhookResponse send(ActionResponse response) throws IOException
Sends an HTTP response for an action.- Throws:
IOException
-
send
public WebhookResponse send(InputBlockResponse response) throws IOException
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
-
-