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,StatusListResponse,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
ConstructorsModifierConstructorDescriptionprotectedprotectedBaseResponseWithErrors(jakarta.ws.rs.core.Response clientResponse) -
Method Summary
Modifier and TypeMethodDescriptionabstract TfromString(String str) @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) toString()Methods inherited from class io.jans.as.client.BaseResponse
getEntity, getHeaders, getLocation, getStatus, setEntity, setHeaders, setLocation, setStatus
-
Constructor Details
-
BaseResponseWithErrors
protected BaseResponseWithErrors() -
BaseResponseWithErrors
protected BaseResponseWithErrors(jakarta.ws.rs.core.Response clientResponse)
-
-
Method Details
-
getClaimMap
-
getClaims
-
setClaimMap
-
getClaim
-
getFirstClaim
-
getErrorDescription
-
setErrorDescription
-
getErrorType
-
setErrorType
-
getErrorUri
-
setErrorUri
-
fromString
-
injectDataFromJson
-
injectErrorIfExistSilently
public void injectErrorIfExistSilently(org.json.JSONObject jsonObj) throws org.json.JSONException - Throws:
org.json.JSONException
-
injectErrorIfExistSilently
-
toString
-