Package io.jans.as.client
Class BaseResponse
java.lang.Object
io.jans.as.client.BaseResponse
- Direct Known Subclasses:
AccessEvaluationClientResponse
,AuthorizationResponse
,BaseResponseWithErrors
,EndSessionResponse
,FirebaseCloudMessagingResponse
,GluuConfigurationResponse
,JwkResponse
,OpenIdConfigurationResponse
,OpenIdConnectDiscoveryResponse
,PingCallbackResponse
,PushErrorResponse
,PushTokenDeliveryResponse
,TokenRevocationResponse
- Version:
- December 26, 2016
- Author:
- Javier Rojas Blum
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionBaseResponse
(int status) Deprecated.protected
BaseResponse
(jakarta.ws.rs.core.Response clientResponse) -
Method Summary
Modifier and TypeMethodDescriptionReturns the entity or body content of the response.Returns the location of the response in the header.int
Returns the HTTP status code of the response.void
Sets the entity or body content of the response.void
setHeaders
(jakarta.ws.rs.core.MultivaluedMap<String, Object> headers) void
setLocation
(String location) Sets the location of the response in the header.void
setStatus
(int status) Sets the HTTP status code of the response.
-
Field Details
-
status
protected int status -
location
-
entity
-
headers
-
-
Constructor Details
-
BaseResponse
public BaseResponse() -
BaseResponse
Deprecated. -
BaseResponse
protected BaseResponse(jakarta.ws.rs.core.Response clientResponse)
-
-
Method Details
-
getStatus
public int getStatus()Returns the HTTP status code of the response.- Returns:
- The HTTP status code.
-
getLocation
Returns the location of the response in the header.- Returns:
- The location of the response.
-
setLocation
Sets the location of the response in the header.- Parameters:
location
- The location of the response.
-
setStatus
public void setStatus(int status) Sets the HTTP status code of the response.- Parameters:
status
- The HTTP status code.
-
getEntity
Returns the entity or body content of the response.- Returns:
- The entity or body content of the response.
-
setEntity
Sets the entity or body content of the response.- Parameters:
entity
- The entity or body content of the response.
-
getHeaders
-
setHeaders
-