public interface XmlFileServer
Modifier and Type | Field and Description |
---|---|
static String |
URL_ENCODING |
Modifier and Type | Method and Description |
---|---|
boolean |
exist(URI model)
Checks if the model referenced by the URI exits and is available
|
boolean |
isResolvableUri(URI model)
Checks if the URI is resolvable by the FileServer.
|
URI |
pushModel(String modelId,
String versionId,
InputStream modelSource)
Pushes a new model (-Version) into the storage.
|
URI |
pushModel(String repositoryUrl,
String filePath,
String versionId,
InputStream modelSource)
Pushes a new model (-Version) into the storage.
|
URI |
pushModel(String modelId,
String versionId,
String repositoryUrl,
String filePath,
InputStream modelSource)
Pushes a new model (-Version) into the storage.
|
InputStream |
resolveModelUri(URI model)
Resolves the model URI and returns the modelSource
|
static final String URL_ENCODING
InputStream resolveModelUri(URI model) throws ModelNotFoundException, UnsupportedUriException, XmlFileServerProtocollException, IOException
model
- URINULL
if URI not foundFileNotFoundException
UnsupportedUriException
XmlFileServerProtocollException
IOException
ModelNotFoundException
boolean exist(URI model) throws UnsupportedUriException, IOException, XmlFileServerProtocollException
model
- UnsupportedUriException
IOException
XmlFileServerProtocollException
boolean isResolvableUri(URI model)
model
- URI pushModel(String modelId, String versionId, InputStream modelSource) throws IOException, UnsupportedUriException, XmlFileServerProtocollException, ModelAlreadyExistsException, XmlFileServerBadRequestException
null
if failed.modelId
- versionId
- modelSource
- IOException
UnsupportedUriException
XmlFileServerProtocollException
XmlFileServerBadRequestException
ModelAlreadyExistsException
URI pushModel(String repositoryUrl, String filePath, String versionId, InputStream modelSource) throws IOException, UnsupportedUriException, XmlFileServerProtocollException, ModelAlreadyExistsException, XmlFileServerBadRequestException
null
if failed.
The modelId will be generated from the server, as well as the model URIrepositoryUrl
- filePath
- versionId
- modelSource
- UnsupportedUriException
IOException
XmlFileServerProtocollException
XmlFileServerBadRequestException
ModelAlreadyExistsException
URI pushModel(String modelId, String versionId, String repositoryUrl, String filePath, InputStream modelSource) throws IOException, UnsupportedUriException, XmlFileServerProtocollException, ModelAlreadyExistsException, XmlFileServerBadRequestException
null
if failed. repositoryUrl
- fileUrl
- versionId
- modelSource
- IOException
UnsupportedUriException
XmlFileServerProtocollException
ModelAlreadyExistsException
XmlFileServerBadRequestException
Copyright © 2013 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.