Package nl.bimbase.bimworks.client
Class BimWorksClient
java.lang.Object
nl.bimbase.bimworks.client.BimWorksClient
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionfinal ActionsApi
final AdminApi
final AiApi
final AuthApi
final BcfApi
final BimApi
final FileSystemApi
final Geometry2dApi
final Geometry3dApi
final GisApi
final IfcApi
final ModelChecksApi
static final com.fasterxml.jackson.databind.ObjectMapper
static final com.fasterxml.jackson.databind.ObjectMapper
final RenderApi
final TokensApi
final UploadApi
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
nl.sascom.backplane.common.ClientTask
createAsyncTask
(nl.sascom.backplane.common.Request request) nl.sascom.backplane.common.Request
nl.sascom.backplane.common.Request
createRequest
(String project, String taskName) com.fasterxml.jackson.databind.JsonNode
executeAsyncTask
(nl.sascom.backplane.common.Request request) Low-level way of executing API calls, generally not needed as most API calls have a typed implementation.com.fasterxml.jackson.databind.node.ArrayNode
executeForArray
(Task taskInput) com.fasterxml.jackson.databind.node.ObjectNode
executeForObject
(Task taskInput) nl.sascom.backplane.common.Response
executeForResponse
(Task taskInput) nl.sascom.backplane.client.NodeClient
getApi()
com.fasterxml.jackson.databind.node.ObjectNode
Retrieve version from the BIM.works Repositorynl.bimbase.bimworks.common.HashManager
nl.sascom.backplane.client.NodeClient
registerStream
(String filename, long filesize, String contentType, InputStream inputStream) registerStream
(String filename, String contentType, String url, long filesize) registerStream
(Path path) void
setAuthToken
(com.fasterxml.jackson.databind.node.ObjectNode auth)
-
Field Details
-
OBJECT_MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER -
OBJECT_MAPPER_LENIENT
public static final com.fasterxml.jackson.databind.ObjectMapper OBJECT_MAPPER_LENIENT -
fs
-
gis
-
auth
-
ifc
-
upload
-
tokens
-
bim
-
bcf
-
admin
-
modelChecks
-
geometry2d
-
geometry3d
-
render
-
actions
-
ai
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
InterruptedException
BimWorksClientClosedException
-
getNodeClient
public nl.sascom.backplane.client.NodeClient getNodeClient() -
getApplicationVersion
public com.fasterxml.jackson.databind.node.ObjectNode getApplicationVersion() throws BimWorksExceptionRetrieve version from the BIM.works Repository- Returns:
- Version of the application, formatted as standard Maven version string
- Throws:
BimWorksException
-
getApi
public nl.sascom.backplane.client.NodeClient getApi()- Returns:
- A NodeClient, this is a more low-level client that you generally do not need to use
-
executeAsyncTask
public com.fasterxml.jackson.databind.JsonNode executeAsyncTask(nl.sascom.backplane.common.Request request) throws BimWorksException Low-level way of executing API calls, generally not needed as most API calls have a typed implementation.- Parameters:
request
-- Returns:
- Throws:
BimWorksException
-
createRequest
- Throws:
BimWorksException
-
createAsyncTask
public nl.sascom.backplane.common.ClientTask createAsyncTask(nl.sascom.backplane.common.Request request) -
registerStream
-
registerStream
public UUID registerStream(String filename, String contentType, String url, long filesize) throws MalformedURLException, nl.sascom.backplane.StreamAlreadyRegisteredException - Throws:
MalformedURLException
nl.sascom.backplane.StreamAlreadyRegisteredException
-
registerStream
public UUID registerStream(String filename, long filesize, String contentType, InputStream inputStream) throws nl.sascom.backplane.StreamAlreadyRegisteredException - Throws:
nl.sascom.backplane.StreamAlreadyRegisteredException
-
setAuthToken
public void setAuthToken(com.fasterxml.jackson.databind.node.ObjectNode auth) -
executeForObject
public com.fasterxml.jackson.databind.node.ObjectNode executeForObject(Task taskInput) throws BimWorksException - Throws:
BimWorksException
-
executeForArray
public com.fasterxml.jackson.databind.node.ArrayNode executeForArray(Task taskInput) throws BimWorksException - Throws:
BimWorksException
-
executeForResponse
public nl.sascom.backplane.common.Response executeForResponse(Task taskInput) throws BimWorksException - Throws:
BimWorksException
-
getFactory
-
getHashManager
public nl.bimbase.bimworks.common.HashManager getHashManager() -
createRequest
public nl.sascom.backplane.common.Request createRequest(String project, String taskName) throws BimWorksException - Throws:
BimWorksException
-