Package com.axway.apim.lib.utils.rest
Class APIMHttpClient
- java.lang.Object
-
- com.axway.apim.lib.utils.rest.APIMHttpClient
-
public class APIMHttpClient extends Object
The interface to the API-Manager itself responsible to set up the underlying HTTPS-Communication. It's used by the RESTAPICall. Implemented as a Singleton, which holds the actual connection to the API-Manager.- Author:
- cwiechmann@axway.com
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static voiddeleteInstances()org.apache.http.client.protocol.HttpClientContextgetClientContext()StringgetCsrfToken()org.apache.http.client.HttpClientgetHttpClient()static APIMHttpClientgetInstance()voidsetCsrfToken(String csrfToken)StringtoString()
-
-
-
Method Detail
-
getInstance
public static APIMHttpClient getInstance() throws AppException
- Throws:
AppException
-
deleteInstances
public static void deleteInstances()
-
getHttpClient
public org.apache.http.client.HttpClient getHttpClient()
-
getClientContext
public org.apache.http.client.protocol.HttpClientContext getClientContext()
-
getCsrfToken
public String getCsrfToken()
-
setCsrfToken
public void setCsrfToken(String csrfToken)
-
close
public void close()
-
-