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 voidaddReqParam(String key, io.jans.as.model.common.HasParamName value) protected voidaddReqParam(String key, String value) protected voidapplyCookies(jakarta.ws.rs.client.Invocation.Builder clientRequest) voidList<jakarta.ws.rs.core.Cookie>org.jboss.resteasy.client.jaxrs.ClientHttpEngineabstract StringgetUrl()protected voidprotected jakarta.ws.rs.client.Invocation.BuilderprepareAuthorizatedClientRequest(io.jans.as.model.common.AuthorizationMethod authorizationMethod, String accessToken) voidsetExecutor(org.jboss.resteasy.client.jaxrs.ClientHttpEngine executor) voidsetRequest(T request) voidsetResponse(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)
-