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

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

public class ObjectStoreResource
extends Object


Field Summary
protected static String JSON
           
static String OBJECTSTORE_JSON
           
static String OBJECTSTORE_XML
           
static String OBJECTSTORES_JSON
           
static String OBJECTSTORES_XML
           
protected  CloudSyncService service
           
protected static String STATUS_200_OK
           
protected static String STATUS_201_CREATED
           
protected static String STATUS_204_NO_CONTENT
           
protected static String TEXT
           
protected static String XML
           
 
Constructor Summary
ObjectStoreResource(CloudSyncService service)
           
 
Method Summary
 javax.ws.rs.core.Response createObjectStore(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req, ObjectStore objectStore)
           
 void deleteObjectStore(String id)
           
 ObjectStore getObjectStore(javax.ws.rs.core.UriInfo uriInfo, javax.servlet.http.HttpServletRequest req, String id)
           
 List<ObjectStore> listObjectStores(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

OBJECTSTORE_JSON

public static final String OBJECTSTORE_JSON
See Also:
Constant Field Values

OBJECTSTORE_XML

public static final String OBJECTSTORE_XML
See Also:
Constant Field Values

OBJECTSTORES_JSON

public static final String OBJECTSTORES_JSON
See Also:
Constant Field Values

OBJECTSTORES_XML

public static final String OBJECTSTORES_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

ObjectStoreResource

public ObjectStoreResource(CloudSyncService service)
Method Detail

createObjectStore

public javax.ws.rs.core.Response createObjectStore(@Context
                                                   javax.ws.rs.core.UriInfo uriInfo,
                                                   @Context
                                                   javax.servlet.http.HttpServletRequest req,
                                                   ObjectStore objectStore)

listObjectStores

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

getObjectStore

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

deleteObjectStore

public void deleteObjectStore(String id)


Copyright © 2012 DuraSpace. All Rights Reserved.