Package nl.bimbase.bimworks.client
Class BimWorksClientFactory
java.lang.Object
nl.bimbase.bimworks.client.BimWorksClientFactory
- All Implemented Interfaces:
AutoCloseable
The BimWorksClientFactory is supposed to be a long-lived object. It's main function is to create BimWorksClient objects.
One BimWorksClientFactory is required per endpoint.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createClientWithApiToken(String apiToken) createClientWithAuth(com.fasterxml.jackson.databind.node.ObjectNode auth) createClientWithUsernamePassword(String username, String password) nl.bimbase.bimworks.common.HashManager
-
Constructor Details
-
BimWorksClientFactory
-
-
Method Details
-
createAnonymousClient
- Throws:
Exception
-
createClientWithUsernamePassword
public BimWorksClient createClientWithUsernamePassword(String username, String password) throws Exception - Throws:
Exception
-
createClientWithApiToken
- Throws:
Exception
-
createClientWithAuth
public BimWorksClient createClientWithAuth(com.fasterxml.jackson.databind.node.ObjectNode auth) throws Exception - Throws:
Exception
-
getAddress
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
getHashManager
public nl.bimbase.bimworks.common.HashManager getHashManager()
-