@RolesAllowed(value="ROLE_tavernauser") public interface TavernaServerListenersREST
TavernaServerListenersREST.TavernaServerListenerREST
Modifier and Type | Interface and Description |
---|---|
static class |
TavernaServerListenersREST.ListenerDescription
A description of an event listener that is attached to a workflow run.
|
static class |
TavernaServerListenersREST.Listeners
The list of descriptions of listeners attached to a run.
|
static class |
TavernaServerListenersREST.Properties
The list of properties of a listener.
|
static interface |
TavernaServerListenersREST.Property
This represents a single property attached of an event listener.
|
static class |
TavernaServerListenersREST.PropertyDescription
The description of a single property, done with JAXB.
|
static interface |
TavernaServerListenersREST.TavernaServerListenerREST
This represents a single event listener attached to a workflow run.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addListener(ListenerDefinition typeAndConfiguration,
javax.ws.rs.core.UriInfo ui)
Add a new event listener to the named workflow run.
|
TavernaServerListenersREST.Listeners |
getDescription(javax.ws.rs.core.UriInfo ui)
Get the listeners installed in the workflow run.
|
TavernaServerListenersREST.TavernaServerListenerREST |
getListener(String name)
Resolve a particular listener from its name.
|
javax.ws.rs.core.Response |
listenersOptions()
Get an outline of the operations supported.
|
@GET @Path(value="/") @Produces(value={"application/xml","application/json"}) @Nonnull TavernaServerListenersREST.Listeners getDescription(@Nonnull @Context javax.ws.rs.core.UriInfo ui)
ui
- About how this method was called.@POST @Path(value="/") @Consumes(value={"application/xml","application/json"}) @Nonnull javax.ws.rs.core.Response addListener(@Nonnull ListenerDefinition typeAndConfiguration, @Nonnull @Context javax.ws.rs.core.UriInfo ui) throws NoUpdateException, NoListenerException
typeAndConfiguration
- What type of run should be created, and how should it be
configured.ui
- About how this method was called.NoUpdateException
- If the user is not permitted to update the run.NoListenerException
- If no listener with the given type exists, or if the
configuration is unacceptable in some way.@OPTIONS @Path(value="/") javax.ws.rs.core.Response listenersOptions()
@Path(value="{name}") @Nonnull TavernaServerListenersREST.TavernaServerListenerREST getListener(@Nonnull @PathParam(value="name") String name) throws NoListenerException
name
- The name of the listener to look up.NoListenerException
- If no listener with the given name exists.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.