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
ConstructorsModifierConstructorDescriptionprotected
protected
BaseResponseWithErrors
(jakarta.ws.rs.core.Response clientResponse) -
Method Summary
Modifier and TypeMethodDescriptionabstract T
fromString
(String str) @Nullable String
getFirstClaim
(@NotNull String claimName) void
injectDataFromJson
(String json) void
injectErrorIfExistSilently
(String entity) void
injectErrorIfExistSilently
(org.json.JSONObject jsonObj) void
setClaimMap
(Map<String, List<String>> claims) void
setErrorDescription
(String errorDescription) void
setErrorType
(T errorType) void
setErrorUri
(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
-