Package io.jans.as.client
Class ClientInfoClient
- java.lang.Object
-
- io.jans.as.client.BaseClient<ClientInfoRequest,ClientInfoResponse>
-
- io.jans.as.client.ClientInfoClient
-
public class ClientInfoClient extends BaseClient<ClientInfoRequest,ClientInfoResponse>
Encapsulates functionality to make client info request calls to an authorization server via REST Services.- Version:
- December 26, 2016
- Author:
- Javier Rojas Blum
-
-
Field Summary
-
Fields inherited from class io.jans.as.client.BaseClient
clientResponse, executor, request, requestForm, response, resteasyClient, webTarget
-
-
Constructor Summary
Constructors Constructor Description ClientInfoClient(java.lang.String url)
Constructs an Client Info client by providing a REST url where the service is located.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClientInfoResponse
exec()
ClientInfoResponse
exec(org.jboss.resteasy.client.jaxrs.ClientHttpEngine engine)
Deprecated.Engine should be shared between clientsClientInfoResponse
execClientInfo(java.lang.String accessToken)
Executes the call to the REST Service and processes the response.java.lang.String
getHttpMethod()
-
Methods inherited from class io.jans.as.client.BaseClient
addReqParam, addReqParam, applyCookies, closeConnection, getCookies, getExecutor, getHeaders, getRequest, getRequestAsString, getResponse, getResponseAsString, getUrl, initClient, prepareAuthorizatedClientRequest, setExecutor, setRequest, setResponse, setUrl
-
-
-
-
Method Detail
-
getHttpMethod
public java.lang.String getHttpMethod()
- Specified by:
getHttpMethod
in classBaseClient<ClientInfoRequest,ClientInfoResponse>
-
execClientInfo
public ClientInfoResponse execClientInfo(java.lang.String accessToken)
Executes the call to the REST Service and processes the response.- Parameters:
accessToken
- The access token obtained from the Jans Auth authorization request.- Returns:
- The service response.
-
exec
public ClientInfoResponse exec()
-
exec
@Deprecated public ClientInfoResponse exec(org.jboss.resteasy.client.jaxrs.ClientHttpEngine engine)
Deprecated.Engine should be shared between clients
-
-