Package io.jans.as.client
Class BaseClient<T extends BaseRequest,V extends BaseResponse>
java.lang.Object
io.jans.as.client.BaseClient<T,V>
- Direct Known Subclasses:
AccessEvaluationClient
,AuthorizeClient
,BackchannelAuthenticationClient
,ClientInfoClient
,DeviceAuthzClient
,EndSessionClient
,FirebaseCloudMessagingClient
,GlobalTokenRevocationClient
,GluuConfigurationClient
,JwkClient
,OpenIdConfigurationClient
,OpenIdConnectDiscoveryClient
,ParClient
,PingCallbackClient
,PushErrorClient
,PushTokenDeliveryClient
,RegisterClient
,RevokeSessionClient
,SsaCreateClient
,SsaGetClient
,SsaGetJwtClient
,SsaRevokeClient
,SsaValidateClient
,StatusListClient
,TokenClient
,TokenRevocationClient
,UserInfoClient
Allows to retrieve HTTP requests to the authorization server and responses from it for display purposes.
- Version:
- October 5, 2021
- Author:
- Javier Rojas Blum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addReqParam
(String key, io.jans.as.model.common.HasParamName value) protected void
addReqParam
(String key, String value) protected void
applyCookies
(jakarta.ws.rs.client.Invocation.Builder clientRequest) void
List<jakarta.ws.rs.core.Cookie>
org.jboss.resteasy.client.jaxrs.ClientHttpEngine
abstract String
getUrl()
protected void
protected jakarta.ws.rs.client.Invocation.Builder
prepareAuthorizatedClientRequest
(io.jans.as.model.common.AuthorizationMethod authorizationMethod, String accessToken) void
setExecutor
(org.jboss.resteasy.client.jaxrs.ClientHttpEngine executor) void
setRequest
(T request) void
setResponse
(V response) void
-
Field Details
-
request
-
response
-
resteasyClient
protected org.jboss.resteasy.client.jaxrs.ResteasyClient resteasyClient -
webTarget
protected jakarta.ws.rs.client.WebTarget webTarget -
requestForm
protected jakarta.ws.rs.core.Form requestForm -
clientResponse
protected jakarta.ws.rs.core.Response clientResponse -
executor
protected org.jboss.resteasy.client.jaxrs.ClientHttpEngine executor
-
-
Constructor Details
-
BaseClient
protected BaseClient() -
BaseClient
-
-
Method Details
-
getUrl
-
setUrl
-
getRequest
-
setRequest
-
getResponse
-
setResponse
-
getExecutor
public org.jboss.resteasy.client.jaxrs.ClientHttpEngine getExecutor() -
setExecutor
public void setExecutor(org.jboss.resteasy.client.jaxrs.ClientHttpEngine executor) -
addReqParam
-
addReqParam
-
getRequestAsString
-
getResponseAsString
-
initClient
protected void initClient() -
applyCookies
protected void applyCookies(jakarta.ws.rs.client.Invocation.Builder clientRequest) -
closeConnection
public void closeConnection() -
getHttpMethod
-
getCookies
-
getHeaders
-
prepareAuthorizatedClientRequest
protected jakarta.ws.rs.client.Invocation.Builder prepareAuthorizatedClientRequest(io.jans.as.model.common.AuthorizationMethod authorizationMethod, String accessToken)
-