Class OAuth2RestletException

    • Constructor Detail

      • OAuth2RestletException

        public OAuth2RestletException​(int statusCode,
                                      String error,
                                      String description,
                                      String state)
        Constructs a new OAuth2RestletException without a redirect uri.
        Parameters:
        statusCode - The status code.
        error - The error.
        description - The description.
        state - The state from the request.
      • OAuth2RestletException

        public OAuth2RestletException​(int statusCode,
                                      String error,
                                      String description,
                                      String redirectUri,
                                      String state)
        Constructs a new OAuth2RestletException with a redirect uri. The OAuth2Constants.UrlLocation for the parameters are defaulted to QUERY.
        Parameters:
        statusCode - The status code.
        error - The error.
        description - The description.
        redirectUri - The redirect uri from the request.
        state - The state from the request.
      • OAuth2RestletException

        public OAuth2RestletException​(int statusCode,
                                      String error,
                                      String description,
                                      String redirectUri,
                                      String state,
                                      OAuth2Constants.UrlLocation parameterLocation)
        Constructs a new OAuth2RestletException with a redirect uri.
        Parameters:
        statusCode - The status code.
        error - The error.
        description - The description.
        redirectUri - The redirect uri from the request.
        state - The state from the request.
    • Method Detail

      • getError

        public String getError()
        Gets the error.
        Returns:
        The error.
      • getErrorDescription

        public String getErrorDescription()
        Gets the error description.
        Returns:
        The error description.
      • getRedirectUri

        public String getRedirectUri()
        Gets the redirect uri.
        Returns:
        The redirect uri.
      • getState

        public String getState()
        Gets the state that was on the request.
        Returns:
        The state.
      • setErrorUri

        public void setErrorUri​(String errorUri)
        Sets the error uri.
        Parameters:
        errorUri - The error uri.
      • getErrorUri

        public String getErrorUri()
        Gets the error uri.
        Returns:
        The error uri.
      • getStatus

        public org.restlet.data.Status getStatus()
        Gets the status code.
        Returns:
        The status code.
      • getParameterLocation

        public OAuth2Constants.UrlLocation getParameterLocation()
        Gets the location of the parameters in the URL.
        Returns:
        the location of the parameters.
      • asMap

        public final Map<String,​String> asMap()
        Converts the exception into a map of its properties.
        Returns:
        A Map.