Class Response
- 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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetBody()Returns the body for the OAuth2 response.org.springframework.http.HttpStatusgetStatus()Returns the HTTP status that should be returned for the OAuth2 response.
-
-
-
Method Detail
-
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
-
-