org.ow2.jasmine.probe.rest.impl
Class JTasks

java.lang.Object
  extended by org.ow2.jasmine.probe.rest.impl.JTasks
All Implemented Interfaces:
Tasks

public class JTasks
extends Object
implements Tasks


Field Summary
 
Fields inherited from interface org.ow2.jasmine.probe.rest.Tasks
logger, RESOURCE_NAME
 
Constructor Summary
JTasks(TasksManager taskManager)
           
 
Method Summary
 javax.ws.rs.core.Response getData(String id)
          Process HTTP GET requests having /task/{id} URI
 javax.ws.rs.core.Response getTasks(javax.ws.rs.core.UriInfo ui)
          Process HTTP GET requests having /task URI It lists all tasks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTasks

public JTasks(TasksManager taskManager)
Method Detail

getData

public javax.ws.rs.core.Response getData(String id)
Description copied from interface: Tasks
Process HTTP GET requests having /task/{id} URI

Specified by:
getData in interface Tasks
Parameters:
id - task id
Returns:
response

getTasks

public javax.ws.rs.core.Response getTasks(javax.ws.rs.core.UriInfo ui)
Description copied from interface: Tasks
Process HTTP GET requests having /task URI It lists all tasks.

Specified by:
getTasks in interface Tasks
Returns:
response containing the existent task ids


Copyright © 2013 OW2 Consortium. All Rights Reserved.