Package org.imixs.archive.service.util
Class RestClientHelper
java.lang.Object
org.imixs.archive.service.util.RestClientHelper
- All Implemented Interfaces:
Serializable
The RestClientHelper provides helper method to create a DocumentRestClient
and a EventLogRestClient.
- Author:
- rsoika
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.imixs.melman.DocumentClientThis method creates a new DocumentClient instance.org.imixs.melman.EventLogClientcreateEventLogClient(org.imixs.melman.DocumentClient documentClient) Creates a EventLogClient form a given DocumentClient instance If an instance already exists, we return the existing instance.voidreset()This method invalidates the rest clients
-
Constructor Details
-
RestClientHelper
public RestClientHelper()
-
-
Method Details
-
createDocumentClient
public org.imixs.melman.DocumentClient createDocumentClient() throws org.imixs.melman.RestAPIExceptionThis method creates a new DocumentClient instance. If an instance already exists, we return the existing instance.- Returns:
- Throws:
org.imixs.melman.RestAPIException
-
createEventLogClient
public org.imixs.melman.EventLogClient createEventLogClient(org.imixs.melman.DocumentClient documentClient) Creates a EventLogClient form a given DocumentClient instance If an instance already exists, we return the existing instance.- Parameters:
documentClient- - a existing documentClient- Returns:
- - a eventLogClient instance
-
reset
public void reset()This method invalidates the rest clients
-