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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CTXThe context behind this request.abstract RequestHeadersabstract Stringabstract RequestTypeabstract StringbooleanbooleanisValid(SlackSignature.Verifier verifier) Verifies if the signature is valid.booleanisValid(SlackSignature.Verifier verifier, long nowInMillis) Verifies if the signature is valid.voidsetClientIpAddress(String clientIpAddress) voidsetSocketMode(boolean socketMode) toString()voidupdateContext(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
-