Package io.jans.as.client
Class BaseResponse
- java.lang.Object
-
- io.jans.as.client.BaseResponse
-
- Direct Known Subclasses:
AuthorizationResponse,BaseResponseWithErrors,EndSessionResponse,FirebaseCloudMessagingResponse,GluuConfigurationResponse,JwkResponse,OpenIdConfigurationResponse,OpenIdConnectDiscoveryResponse,PingCallbackResponse,PushErrorResponse,PushTokenDeliveryResponse,TokenRevocationResponse
public abstract class BaseResponse extends java.lang.Object- Version:
- December 26, 2016
- Author:
- Javier Rojas Blum
-
-
Constructor Summary
Constructors Modifier Constructor Description BaseResponse()BaseResponse(int status)Deprecated.protectedBaseResponse(jakarta.ws.rs.core.Response clientResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEntity()Returns the entity or body content of the response.jakarta.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object>getHeaders()java.lang.StringgetLocation()Returns the location of the response in the header.intgetStatus()Returns the HTTP status code of the response.voidsetEntity(java.lang.String entity)Sets the entity or body content of the response.voidsetHeaders(jakarta.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers)voidsetLocation(java.lang.String location)Sets the location of the response in the header.voidsetStatus(int status)Sets the HTTP status code of the response.
-
-
-
Method Detail
-
getStatus
public int getStatus()
Returns the HTTP status code of the response.- Returns:
- The HTTP status code.
-
getLocation
public java.lang.String getLocation()
Returns the location of the response in the header.- Returns:
- The location of the response.
-
setLocation
public void setLocation(java.lang.String location)
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
public java.lang.String getEntity()
Returns the entity or body content of the response.- Returns:
- The entity or body content of the response.
-
setEntity
public void setEntity(java.lang.String entity)
Sets the entity or body content of the response.- Parameters:
entity- The entity or body content of the response.
-
getHeaders
public jakarta.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getHeaders()
-
setHeaders
public void setHeaders(jakarta.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers)
-
-