Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

JyFedoREST is a Jython package for creating and managing objects in a Fedora Repository. It is a minimal Jython wrapper around V3.2.1 of the Fedora REST API as documented at http://www.fedora-commons.org/confluence/display/FCR30/REST+API.

The package is avaliable in both zip and tar/gzip fomrats. The source code for this product is also available from the Fedora Commons SVN at https://fedora-commons.svn.sourceforge.net/svnroot/fedora-commons/incubator/kepler/trunk/jython/fcrepo

...

Product components

FCRepoRestAPI class

Code Block

usage: from fcrepo.http.restapi import FCRepoRestAPI

This pure Python class contains a one-to-one implementation of each method documented in Version 3.2.1 of the Fedora Repository REST API. It is the only class you need import into your application.

...

FCRepoRequestFactory class

Code Block

usage: from fcrepo.http.RequestFactory import FCRepoRequestFactory

This is a support class that supplies HTTP connections and services to instances of FCRepoRestAPI. It implements GET, PUT, POST and DELETE methods in a very simple Jython wrapper around the same org.apache.commons.httpclient Java libraries used in the standard Fedora installation. The GET, PUT, POST and DELETE methods (and, thus, the FCRepoRestAPI class methods that use them) each return an instance of the FCRepoResponse class.

FCRepoResponse class

Code Block

usage: from fcrepo.http.RequestFactory import FCRepoResponse

This is a support class that provides a Pythonic interface to elements of a response to an HTTP request. It implements the following methods:

...