Package org.forgerock.json.resource
Interface Response
- All Known Subinterfaces:
ActionResponse
,QueryResponse
,ResourceResponse
- All Known Implementing Classes:
BadRequestException
,ConflictException
,CreateNotSupportedException
,ForbiddenException
,InternalServerErrorException
,NotFoundException
,NotSupportedException
,PermanentException
,PreconditionFailedException
,PreconditionRequiredException
,ResourceException
,RetryableException
,ServiceUnavailableException
,TokenCreationException
,TokenValidationException
,UncategorizedException
,UnsupportedMediaTypeException
public interface Response
Common response object of all resource responses.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResponseCacheControl
Indicates how the response should be cached by clients.Gets the API version of the resource that the request was routed to.void
setResourceApiVersion
(Version version) Sets the API version of the resource that the request was routed to.
-
Method Details
-
setResourceApiVersion
Sets the API version of the resource that the request was routed to.- Parameters:
version
- The resource API version.
-
getResourceApiVersion
Version getResourceApiVersion()Gets the API version of the resource that the request was routed to.- Returns:
- The resource API version.
-
getCacheControl
Indicates how the response should be cached by clients.- Returns:
- the cache controls to apply to the response.
-