Package io.jans.as.client
Class BaseResponseWithErrors<T extends io.jans.as.model.error.IErrorType>
- java.lang.Object
-
- io.jans.as.client.BaseResponse
-
- io.jans.as.client.BaseResponseWithErrors<T>
-
- Direct Known Subclasses:
BackchannelAuthenticationResponse,ClientInfoResponse,DeviceAuthzResponse,GlobalTokenRevocationResponse,ParResponse,RegisterResponse,RevokeSessionResponse,SsaCreateResponse,SsaGetJwtResponse,SsaGetResponse,SsaRevokeResponse,SsaValidateResponse,TokenResponse,UserInfoResponse
public abstract class BaseResponseWithErrors<T extends io.jans.as.model.error.IErrorType> extends BaseResponse
- Version:
- 0.9, 09/10/2012
- Author:
- Yuriy Zabrovarnyy
-
-
Field Summary
-
Fields inherited from class io.jans.as.client.BaseResponse
entity, headers, location, status
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseResponseWithErrors()protectedBaseResponseWithErrors(jakarta.ws.rs.core.Response clientResponse)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TfromString(String str)List<String>getClaim(String claimName)Map<String,List<String>>getClaimMap()Map<String,String>getClaims()StringgetErrorDescription()TgetErrorType()StringgetErrorUri()@Nullable StringgetFirstClaim(@NotNull String claimName)voidinjectDataFromJson(String json)voidinjectErrorIfExistSilently(String entity)voidinjectErrorIfExistSilently(org.json.JSONObject jsonObj)voidsetClaimMap(Map<String,List<String>> claims)voidsetErrorDescription(String errorDescription)voidsetErrorType(T errorType)voidsetErrorUri(String errorUri)StringtoString()-
Methods inherited from class io.jans.as.client.BaseResponse
getEntity, getHeaders, getLocation, getStatus, setEntity, setHeaders, setLocation, setStatus
-
-
-
-
Method Detail
-
getErrorDescription
public String getErrorDescription()
-
setErrorDescription
public void setErrorDescription(String errorDescription)
-
getErrorType
public T getErrorType()
-
setErrorType
public void setErrorType(T errorType)
-
getErrorUri
public String getErrorUri()
-
setErrorUri
public void setErrorUri(String errorUri)
-
injectDataFromJson
public void injectDataFromJson(String json)
-
injectErrorIfExistSilently
public void injectErrorIfExistSilently(org.json.JSONObject jsonObj) throws org.json.JSONException- Throws:
org.json.JSONException
-
injectErrorIfExistSilently
public void injectErrorIfExistSilently(String entity)
-
-