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
,ParResponse
,RegisterResponse
,RevokeSessionResponse
,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(java.lang.String str)
java.util.List<java.lang.String>
getClaim(java.lang.String claimName)
java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getClaimMap()
java.util.Map<java.lang.String,java.lang.String>
getClaims()
java.lang.String
getErrorDescription()
T
getErrorType()
java.lang.String
getErrorUri()
@Nullable java.lang.String
getFirstClaim(@NotNull java.lang.String claimName)
void
injectDataFromJson(java.lang.String json)
void
injectErrorIfExistSilently(java.lang.String entity)
void
injectErrorIfExistSilently(org.json.JSONObject jsonObj)
void
setClaimMap(java.util.Map<java.lang.String,java.util.List<java.lang.String>> claims)
void
setErrorDescription(java.lang.String errorDescription)
void
setErrorType(T errorType)
void
setErrorUri(java.lang.String errorUri)
java.lang.String
toString()
-
Methods inherited from class io.jans.as.client.BaseResponse
getEntity, getHeaders, getLocation, getStatus, setEntity, setHeaders, setLocation, setStatus
-
-
-
-
Method Detail
-
getClaimMap
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getClaimMap()
-
getClaims
public java.util.Map<java.lang.String,java.lang.String> getClaims()
-
setClaimMap
public void setClaimMap(java.util.Map<java.lang.String,java.util.List<java.lang.String>> claims)
-
getClaim
public java.util.List<java.lang.String> getClaim(java.lang.String claimName)
-
getFirstClaim
@Nullable public @Nullable java.lang.String getFirstClaim(@NotNull @NotNull java.lang.String claimName)
-
getErrorDescription
public java.lang.String getErrorDescription()
-
setErrorDescription
public void setErrorDescription(java.lang.String errorDescription)
-
getErrorType
public T getErrorType()
-
setErrorType
public void setErrorType(T errorType)
-
getErrorUri
public java.lang.String getErrorUri()
-
setErrorUri
public void setErrorUri(java.lang.String errorUri)
-
fromString
public abstract T fromString(java.lang.String str)
-
injectDataFromJson
public void injectDataFromJson(java.lang.String json)
-
injectErrorIfExistSilently
public void injectErrorIfExistSilently(org.json.JSONObject jsonObj) throws org.json.JSONException
- Throws:
org.json.JSONException
-
injectErrorIfExistSilently
public void injectErrorIfExistSilently(java.lang.String entity)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-