org.duraspace.fcrepo.cloudsync.service.rest
Class TaskResource
java.lang.Object
org.duraspace.fcrepo.cloudsync.service.rest.TaskResource
public class TaskResource
- extends Object
|
Method Summary |
javax.ws.rs.core.Response |
createTask(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest req,
Task task)
|
void |
deleteTask(String id)
|
Task |
getTask(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest req,
String id)
|
List<Task> |
listTasks(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest req)
|
Task |
updateTask(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest req,
String id,
Task task)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TASK_JSON
public static final String TASK_JSON
- See Also:
- Constant Field Values
TASK_XML
public static final String TASK_XML
- See Also:
- Constant Field Values
TASKS_JSON
public static final String TASKS_JSON
- See Also:
- Constant Field Values
TASKS_XML
public static final String TASKS_XML
- See Also:
- Constant Field Values
JSON
protected static final String JSON
- See Also:
- Constant Field Values
TEXT
protected static final String TEXT
- See Also:
- Constant Field Values
XML
protected static final String XML
- See Also:
- Constant Field Values
STATUS_200_OK
protected static final String STATUS_200_OK
- See Also:
- Constant Field Values
STATUS_201_CREATED
protected static final String STATUS_201_CREATED
- See Also:
- Constant Field Values
STATUS_204_NO_CONTENT
protected static final String STATUS_204_NO_CONTENT
- See Also:
- Constant Field Values
service
protected final CloudSyncService service
TaskResource
public TaskResource(CloudSyncService service)
createTask
public javax.ws.rs.core.Response createTask(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.servlet.http.HttpServletRequest req,
Task task)
listTasks
public List<Task> listTasks(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.servlet.http.HttpServletRequest req)
getTask
public Task getTask(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.servlet.http.HttpServletRequest req,
String id)
updateTask
public Task updateTask(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.servlet.http.HttpServletRequest req,
String id,
Task task)
deleteTask
public void deleteTask(String id)
Copyright © 2012 DuraSpace. All Rights Reserved.