Package fr.gouv.vitam.workspace.client
Class WorkspaceClientFactory
- java.lang.Object
-
- fr.gouv.vitam.common.client.VitamClientFactory<WorkspaceClient>
-
- fr.gouv.vitam.workspace.client.WorkspaceClientFactory
-
- All Implemented Interfaces:
VitamClientFactoryInterface<WorkspaceClient>
public class WorkspaceClientFactory extends VitamClientFactory<WorkspaceClient>
WorkspaceClient factory for creating workspace client
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface fr.gouv.vitam.common.client.VitamClientFactoryInterface
VitamClientFactoryInterface.VitamClientType
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.common.client.VitamClientFactory
clientConfiguration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
changeMode(java.lang.String serviceUrl)
change mode client by server urlstatic void
changeMode(java.lang.String serviceUrl, WorkspaceType workspaceType)
change mode client by server urlWorkspaceClient
getClient()
This method returns the correct Client adapted to the business casestatic WorkspaceClientFactory
getInstance()
static WorkspaceClientFactory
getInstance(WorkspaceType workspaceType)
-
Methods inherited from class fr.gouv.vitam.common.client.VitamClientFactory
changeResourcePath, changeServerPort, disableUseAuthorizationFilter, enableUseAuthorizationFilter, getClientConfiguration, getDefaultConfigCient, getDefaultConfigCient, getHttpClient, getHttpClient, getResourcePath, getServiceUrl, getVitamClientType, getVitamThreadPoolExecutor, initialisation, isAllowGzipDecoded, isAllowGzipEncoded, resetConnections, resume, setGzipdecoded, setGzipEncoded, setVitamClientType, shutdown, toString
-
-
-
-
Method Detail
-
getInstance
public static WorkspaceClientFactory getInstance()
- Returns:
- the instance
-
getInstance
public static WorkspaceClientFactory getInstance(WorkspaceType workspaceType)
- Parameters:
workspaceType
- type of workspace VITAM | COLLECT- Returns:
- an instance of WorkspaceClientFactory based on the type of workspace
-
getClient
public WorkspaceClient getClient()
Description copied from interface:VitamClientFactoryInterface
This method returns the correct Client adapted to the business case- Returns:
- the Vitam client
-
changeMode
public static void changeMode(java.lang.String serviceUrl)
change mode client by server url- Parameters:
serviceUrl
- as String
-
changeMode
public static void changeMode(java.lang.String serviceUrl, WorkspaceType workspaceType)
change mode client by server url- Parameters:
serviceUrl
- as String
-
-