Class RestClientHelper

java.lang.Object
org.imixs.archive.service.util.RestClientHelper
All Implemented Interfaces:
Serializable

@Named @ApplicationScoped public class RestClientHelper extends Object implements Serializable
The RestClientHelper provides helper method to create a DocumentRestClient and a EventLogRestClient.
Author:
rsoika
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.imixs.melman.DocumentClient
    This method creates a new DocumentClient instance.
    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.
    void
    This method invalidates the rest clients

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RestClientHelper

      public RestClientHelper()
  • Method Details

    • createDocumentClient

      public org.imixs.melman.DocumentClient createDocumentClient() throws org.imixs.melman.RestAPIException
      This 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