Package com.slack.api.bolt.handler
Interface Handler<CTX extends Context,REQ extends Request<CTX>,RESP extends Response>
- Type Parameters:
CTX
- contextREQ
- requestRESP
- response
- All Known Subinterfaces:
AttachmentActionHandler
,BlockActionHandler
,BlockSuggestionHandler
,DialogCancellationHandler
,DialogSubmissionHandler
,DialogSuggestionHandler
,GlobalShortcutHandler
,MessageShortcutHandler
,SlashCommandHandler
,ViewClosedHandler
,ViewSubmissionHandler
,WorkflowStepEditHandler
,WorkflowStepExecuteHandler
,WorkflowStepSaveHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface Handler<CTX extends Context,REQ extends Request<CTX>,RESP extends Response>
Slack App Handler.
-
Method Summary
-
Method Details
-
apply
A function returns a response corresponding to the given request and its context.- Parameters:
req
- requestcontext
- context- Returns:
- response
- Throws:
IOException
SlackApiException
-