java.lang.Object
africa.absa.inception.oauth2.server.authorization.controller.Response
Direct Known Subclasses:
ErrorResponse, ResourceOwnerPasswordCredentialsGrantResponse, SystemUnavailableResponse

public abstract class Response extends Object
The Response class provides the base class that all OAuth2 response classes should be derived from.
Author:
Marcus Portmann
  • Constructor Summary

    Constructors
    Constructor
    Description
    Response(org.springframework.http.HttpStatus status)
    Constructs a new Response.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract String
    Returns the body for the OAuth2 response.
    org.springframework.http.HttpStatus
    Returns the HTTP status that should be returned for the OAuth2 response.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Response

      public Response(org.springframework.http.HttpStatus status)
      Constructs a new Response.
      Parameters:
      status - the HTTP status that should be returned for the OAuth2 response
  • Method Details

    • getBody

      public abstract String getBody()
      Returns the body for the OAuth2 response.
      Returns:
      the body for the OAuth2 response
    • getStatus

      public org.springframework.http.HttpStatus getStatus()
      Returns the HTTP status that should be returned for the OAuth2 response.
      Returns:
      the HTTP status that should be returned for the OAuth2 response