Class Response
java.lang.Object
africa.absa.inception.oauth2.server.authorization.controller.Response
- Direct Known Subclasses:
ErrorResponse,ResourceOwnerPasswordCredentialsGrantResponse,SystemUnavailableResponse
The Response class provides the base class that all OAuth2 response classes should be
derived from.
- Author:
- Marcus Portmann
-
Constructor Summary
ConstructorsConstructorDescriptionResponse(org.springframework.http.HttpStatus status) Constructs a new Response. -
Method Summary
-
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
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
-