Class TestVitamClientFactory<T extends BasicClient>
- java.lang.Object
-
- fr.gouv.vitam.common.external.client.VitamClientFactory<T>
-
- fr.gouv.vitam.common.external.client.TestVitamClientFactory<T>
-
- Type Parameters:
T
- BasicClient class
- All Implemented Interfaces:
VitamClientFactoryInterface<T>
public class TestVitamClientFactory<T extends BasicClient> extends VitamClientFactory<T>
Default VitamClientFactory for Test purpose only
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface fr.gouv.vitam.common.client.VitamClientFactoryInterface
VitamClientFactoryInterface.VitamClientType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
LOCALHOST
localhost-
Fields inherited from class fr.gouv.vitam.common.external.client.VitamClientFactory
clientConfiguration
-
-
Constructor Summary
Constructors Constructor Description TestVitamClientFactory(int serverPort, java.lang.String resourcePath)
TestVitamClientFactory(int serverPort, java.lang.String resourcePath, javax.ws.rs.client.Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getClient()
This method returns the correct Client adapted to the business case-
Methods inherited from class fr.gouv.vitam.common.external.client.VitamClientFactory
changeResourcePath, changeServerPort, getClientConfiguration, getDefaultConfigCient, getDefaultConfigCient, getHttpClient, getHttpClient, getResourcePath, getServiceUrl, getVitamClientType, initialisation, isAllowGzipDecoded, isAllowGzipEncoded, resetConnections, resume, setGzipdecoded, setGzipEncoded, setVitamClientType, shutdown, toString
-
-
-
-
Field Detail
-
LOCALHOST
public static final java.lang.String LOCALHOST
localhost- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TestVitamClientFactory
public TestVitamClientFactory(int serverPort, java.lang.String resourcePath)
- Parameters:
serverPort
-resourcePath
-
-
TestVitamClientFactory
public TestVitamClientFactory(int serverPort, java.lang.String resourcePath, javax.ws.rs.client.Client client)
- Parameters:
serverPort
-resourcePath
-client
-
-
-
Method Detail
-
getClient
public T getClient()
Description copied from interface:VitamClientFactoryInterface
This method returns the correct Client adapted to the business case- Returns:
- the Vitam client
-
-