T
- the type of the Vitam client returnedpublic interface VitamClientFactoryInterface<T extends MockOrRestClient>
Modifier and Type | Interface and Description |
---|---|
static class |
VitamClientFactoryInterface.VitamClientType
enum to define client type
|
Modifier and Type | Method and Description |
---|---|
void |
changeResourcePath(String resourcePath)
Change the server resourcePath to use.
|
void |
changeServerPort(int port)
Change the server port to use.
|
T |
getClient()
This method returns the correct Client adapted to the business case
|
ClientConfiguration |
getClientConfiguration() |
Map<VitamRestEasyConfiguration,Object> |
getDefaultConfigCient() |
Map<VitamRestEasyConfiguration,Object> |
getDefaultConfigCient(boolean chunkedMode) |
javax.ws.rs.client.Client |
getHttpClient()
Get the internal Http client
|
javax.ws.rs.client.Client |
getHttpClient(boolean useChunkedMode)
Get the internal Http client according to the chunk mode
|
String |
getResourcePath()
Get the resource path of the server.
|
String |
getServiceUrl()
Get the service URL
|
VitamClientFactoryInterface.VitamClientType |
getVitamClientType() |
void |
resume(javax.ws.rs.client.Client client,
boolean chunk)
Reset the client into the Jersey Client pool if possible
|
VitamClientFactoryInterface<?> |
setVitamClientType(VitamClientFactoryInterface.VitamClientType vitamClientType) |
void |
shutdown()
Shutdown the Factory
|
javax.ws.rs.client.Client getHttpClient()
javax.ws.rs.client.Client getHttpClient(boolean useChunkedMode)
useChunkedMode
- T getClient()
String getResourcePath()
String getServiceUrl()
Map<VitamRestEasyConfiguration,Object> getDefaultConfigCient()
Map<VitamRestEasyConfiguration,Object> getDefaultConfigCient(boolean chunkedMode)
chunkedMode
- ClientConfiguration getClientConfiguration()
VitamClientFactoryInterface.VitamClientType getVitamClientType()
VitamClientFactoryInterface.VitamClientType
VitamClientFactoryInterface<?> setVitamClientType(VitamClientFactoryInterface.VitamClientType vitamClientType)
vitamClientType
- to setvoid changeResourcePath(String resourcePath)
resourcePath
- void changeServerPort(int port)
port
- void shutdown()
void resume(javax.ws.rs.client.Client client, boolean chunk)
client
- chunk
- Copyright © 2018 Vitam. All rights reserved.