Class Request<CTX extends Context>

    • Constructor Detail

      • Request

        public Request()
    • Method Detail

      • getClientIpAddress

        public String getClientIpAddress()
      • setClientIpAddress

        public void setClientIpAddress​(String clientIpAddress)
      • getContext

        public abstract CTX getContext()
        The context behind this request.
      • updateContext

        public void updateContext​(AppConfig config)
        Set the sufficient information to the underlying context.
      • getRequestType

        public abstract RequestType getRequestType()
      • getRequestBodyAsString

        public abstract String getRequestBodyAsString()
      • getResponseUrl

        public abstract String getResponseUrl()
      • isValid

        public boolean isValid​(SlackSignature.Verifier verifier)
        Verifies if the signature is valid.
        Parameters:
        verifier - the verifier
        Returns:
        true if valid
      • isValid

        public boolean isValid​(SlackSignature.Verifier verifier,
                               long nowInMillis)
        Verifies if the signature is valid.
        Parameters:
        verifier - the verifier
        nowInMillis - current timestamp
        Returns:
        true if valid