Class RESTClientFactory


  • public class RESTClientFactory
    extends Object
    • Constructor Detail

      • RESTClientFactory

        public RESTClientFactory​(String serverName,
                                 String serverPlatformURLRoot)
        Constructor for unsecured client connector
        Parameters:
        serverName - name of the OMAG Server to call
        serverPlatformURLRoot - URL root of the server platform where the OMAG Server is running.
      • RESTClientFactory

        public RESTClientFactory​(String serverName,
                                 String serverPlatformURLRoot,
                                 String userId,
                                 String password)
        Constructor for authenticated client connector
        Parameters:
        serverName - name of the OMAG Server to call
        serverPlatformURLRoot - URL root of the server platform where the OMAG Server is running.
        userId - user id for the HTTP request
        password - password for the HTTP request
    • Method Detail

      • getClientConnector

        public RESTClientConnector getClientConnector()
                                               throws Exception
        Retrieve the REST client connector.
        Returns:
        client connector
        Throws:
        Exception - an unexpected exception - internal logic error as the parameters should have all been checked before this call.