@RolesAllowed(value="ROLE_tavernauser") public interface TavernaServerInputREST
Modifier and Type | Interface and Description |
---|---|
static class |
TavernaServerInputREST.InDesc
The Details of a particular input port's value assignment, done with
JAXB.
|
static class |
TavernaServerInputREST.InputsDescriptor
A description of the structure of inputs to a Taverna workflow run, done
with JAXB.
|
static interface |
TavernaServerInputREST.PathNames |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
baclavaOptions()
Get an outline of the operations supported.
|
javax.ws.rs.core.Response |
expectedOptions()
Get an outline of the operations supported.
|
TavernaServerInputREST.InputsDescriptor |
get() |
String |
getBaclavaFile() |
InputDescription |
getExpected() |
TavernaServerInputREST.InDesc |
getInput(String name,
javax.ws.rs.core.UriInfo uriInfo)
Get what input is set for the specific input.
|
javax.ws.rs.core.Response |
inputOptions(String name)
Get an outline of the operations supported.
|
javax.ws.rs.core.Response |
options()
Get an outline of the operations supported.
|
String |
setBaclavaFile(String filename)
Set the Baclava file that will supply all the inputs to the workflow run.
|
TavernaServerInputREST.InDesc |
setInput(String name,
TavernaServerInputREST.InDesc inputDescriptor,
javax.ws.rs.core.UriInfo uriInfo)
Set what an input uses to provide data into the workflow run.
|
@GET @Path(value="/") @Produces(value={"application/xml","application/json"}) @Nonnull TavernaServerInputREST.InputsDescriptor get()
@OPTIONS @Path(value="/") javax.ws.rs.core.Response options()
@GET @Path(value="expected") @Produces(value={"application/xml","application/json"}) @Nonnull InputDescription getExpected()
@OPTIONS @Path(value="expected") javax.ws.rs.core.Response expectedOptions()
@GET @Path(value="baclava") @Produces(value="text/plain") @Nonnull String getBaclavaFile()
@PUT @Path(value="baclava") @Consumes(value="text/plain") @Produces(value="text/plain") @Nonnull String setBaclavaFile(@Nonnull String filename) throws NoUpdateException, BadStateChangeException, FilesystemAccessException
filename
- The filename to set.NoUpdateException
- If the user can't update the run.BadStateChangeException
- If the run is not Initialized.FilesystemAccessException
- If the filename starts with a / or if it contains a
.. segment.@OPTIONS @Path(value="baclava") javax.ws.rs.core.Response baclavaOptions()
@GET @Path(value="input/{name}") @Produces(value={"application/xml","application/json"}) @Nonnull TavernaServerInputREST.InDesc getInput(@Nonnull @PathParam(value="name") String name, @Context javax.ws.rs.core.UriInfo uriInfo) throws BadInputPortNameException
name
- The input to set.uriInfo
- About the URI used to access this resource.BadInputPortNameException
- If no input with that name exists.@PUT @Path(value="input/{name}") @Consumes(value={"application/xml","application/json"}) @Produces(value={"application/xml","application/json"}) @Nonnull TavernaServerInputREST.InDesc setInput(@Nonnull @PathParam(value="name") String name, @Nonnull TavernaServerInputREST.InDesc inputDescriptor, @Context javax.ws.rs.core.UriInfo uriInfo) throws NoUpdateException, BadStateChangeException, FilesystemAccessException, BadPropertyValueException, BadInputPortNameException
name
- The name of the input.inputDescriptor
- A description of the inputuriInfo
- About the URI used to access this resource.NoUpdateException
- If the user can't update the run.BadStateChangeException
- If the run is not Initialized.FilesystemAccessException
- If a filename is being set and the filename starts with a
/ or if it contains a .. segment.BadInputPortNameException
- If no input with that name exists.BadPropertyValueException
- If some bad misconfiguration has happened.@OPTIONS @Path(value="input/{name}") javax.ws.rs.core.Response inputOptions(@PathParam(value="name") String name)
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.