Package com.slack.api.bolt.request
Class Request<CTX extends Context>
java.lang.Object
com.slack.api.bolt.request.Request<CTX>
- Type Parameters:
CTX
- context
- Direct Known Subclasses:
AttachmentActionRequest
,BlockActionRequest
,BlockSuggestionRequest
,DialogCancellationRequest
,DialogSubmissionRequest
,DialogSuggestionRequest
,EventRequest
,GlobalShortcutRequest
,MessageShortcutRequest
,OAuthCallbackRequest
,OAuthStartRequest
,SlashCommandRequest
,SSLCheckRequest
,UrlVerificationRequest
,ViewClosedRequest
,ViewSubmissionRequest
,WorkflowStepEditRequest
,WorkflowStepExecuteRequest
,WorkflowStepSaveRequest
Http Request from the Slack API server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract CTX
The context behind this request.abstract RequestHeaders
abstract String
abstract RequestType
abstract String
boolean
boolean
isValid
(SlackSignature.Verifier verifier) Verifies if the signature is valid.boolean
isValid
(SlackSignature.Verifier verifier, long nowInMillis) Verifies if the signature is valid.void
setClientIpAddress
(String clientIpAddress) void
setSocketMode
(boolean socketMode) toString()
void
updateContext
(AppConfig config) Set the sufficient information to the underlying context.
-
Constructor Details
-
Request
public Request()
-
-
Method Details
-
getClientIpAddress
-
setClientIpAddress
-
getContext
The context behind this request. -
updateContext
Set the sufficient information to the underlying context. -
getRequestType
-
getQueryString
-
getRequestBodyAsString
-
getHeaders
-
getResponseUrl
-
isValid
Verifies if the signature is valid.- Parameters:
verifier
- the verifier- Returns:
- true if valid
-
isValid
Verifies if the signature is valid.- Parameters:
verifier
- the verifiernowInMillis
- current timestamp- Returns:
- true if valid
-
isSocketMode
public boolean isSocketMode() -
setSocketMode
public void setSocketMode(boolean socketMode) -
toString
-