Package org.imixs.melman
Class ModelClient
java.lang.Object
org.imixs.melman.AbstractClient
org.imixs.melman.ModelClient
This ServiceClient is a WebService REST Client which encapsulate the
communication with a REST web serice based on the Imixs Workflow REST API.
The Implementation is based on the JAXB API 2.0.
- Author:
- Ralph Soika
-
Field Summary
Fields inherited from class org.imixs.melman.AbstractClient
baseURI, requestFilterList, sslContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteModel(String version) Deletes a model by its versionvoidpostModel(InputStream inputStream) Posts an XML file as InputStream to the Model service.voidpostModel(org.openbpmn.bpmn.BPMNModel model) Methods inherited from class org.imixs.melman.AbstractClient
getBaseURI, getCustomResource, getCustomResourceXML, getRequestFilterList, getSslContext, getWebTarget, logout, newClient, registerClientRequestFilter, setBaseURI, setSslContext
-
Constructor Details
-
ModelClient
Initialize the client by a BASE_URL.- Parameters:
base_uri-
-
-
Method Details
-
postModel
Posts an XML file as InputStream to the Model service.- Parameters:
inputStream- - InputStream pointing to a BPMN XML file- Throws:
RestAPIException
-
postModel
- Throws:
RestAPIException
-
deleteModel
Deletes a model by its version- Parameters:
userid-- Throws:
RestAPIException
-