org.duraspace.fcrepo.cloudsync.service.rest
Class TaskLogResource

java.lang.Object
  extended by org.duraspace.fcrepo.cloudsync.service.rest.TaskLogResource

public class TaskLogResource
extends Object


Field Summary
protected static String JSON
           
protected  CloudSyncService service
           
protected static String STATUS_200_OK
           
protected static String STATUS_201_CREATED
           
protected static String STATUS_204_NO_CONTENT
           
static String TASKLOG_JSON
           
static String TASKLOG_XML
           
static String TASKLOGS_JSON
           
static String TASKLOGS_XML
           
protected static String TEXT
           
protected static String XML
           
 
Constructor Summary
TaskLogResource(CloudSyncService service)
           
 
Method Summary
 void deleteTaskLog(String id)
           
 TaskLog getTaskLog(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req, String id)
           
 InputStream getTaskLogContent(String id)
           
 List<TaskLog> listTaskLogs(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASKLOG_JSON

public static final String TASKLOG_JSON
See Also:
Constant Field Values

TASKLOG_XML

public static final String TASKLOG_XML
See Also:
Constant Field Values

TASKLOGS_JSON

public static final String TASKLOGS_JSON
See Also:
Constant Field Values

TASKLOGS_XML

public static final String TASKLOGS_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
Constructor Detail

TaskLogResource

public TaskLogResource(CloudSyncService service)
Method Detail

listTaskLogs

public List<TaskLog> listTaskLogs(@Context
                                  javax.ws.rs.core.UriInfo uriInfo,
                                  @Context
                                  javax.servlet.http.HttpServletRequest req)

getTaskLog

public TaskLog getTaskLog(@Context
                          javax.ws.rs.core.UriInfo uriInfo,
                          @Context
                          javax.servlet.http.HttpServletRequest req,
                          String id)

getTaskLogContent

public InputStream getTaskLogContent(String id)

deleteTaskLog

public void deleteTaskLog(String id)


Copyright © 2012 DuraSpace. All Rights Reserved.