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 protected
BaseResponseWithErrors()
protected
BaseResponseWithErrors(jakarta.ws.rs.core.Response clientResponse)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract T
fromString(String str)
List<String>
getClaim(String claimName)
Map<String,List<String>>
getClaimMap()
Map<String,String>
getClaims()
String
getErrorDescription()
T
getErrorType()
String
getErrorUri()
@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)
String
toString()
-
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)
-
-