public class ModelServer
extends java.lang.Object
Constructor and Description |
---|
ModelServer() |
ModelServer(java.lang.String name,
UserCredentials credentials)
Connects to a ProcessEditorServer with the given credentials.
|
ModelServer(java.net.URI uri,
java.lang.String name)
Deprecated.
|
ModelServer(java.net.URI uri,
java.lang.String name,
UserCredentials credentials)
Connects to a ProcessEditorServer with the given credentials but
a different server than in the credentials.
|
Modifier and Type | Method and Description |
---|---|
ModelDescription |
findModel(java.lang.String modelUri) |
static UserCredentials |
getDefaultCredentials() |
static java.net.URI |
getDefaultLocalURI() |
ModelDirectory |
getDirectory() |
static void |
main(java.lang.String[] args) |
public ModelServer(java.net.URI uri, java.lang.String name) throws java.net.URISyntaxException
uri
- name
- java.net.URISyntaxException
public ModelServer(java.net.URI uri, java.lang.String name, UserCredentials credentials) throws java.net.URISyntaxException
uri
- name
- credentials
- java.net.URISyntaxException
public ModelServer(java.lang.String name, UserCredentials credentials)
name
- credentials
- public ModelServer() throws java.net.URISyntaxException
java.net.URISyntaxException
public ModelDescription findModel(java.lang.String modelUri) throws java.lang.Exception
java.lang.Exception
public ModelDirectory getDirectory() throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, javax.xml.parsers.ParserConfigurationException, javax.xml.xpath.XPathExpressionException, InvalidUserCredentialsException, XMLHttpRequestException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
javax.xml.xpath.XPathExpressionException
InvalidUserCredentialsException
XMLHttpRequestException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static UserCredentials getDefaultCredentials()
public static java.net.URI getDefaultLocalURI()