org.fedoracommons.funapi
Interface ObjectResolver

All Known Implementing Classes:
AbstractPmhResolver, DSpacePmhResolver, FedoraPmhResolver, FedoraResolver

public interface ObjectResolver

Since:
0.1
Version:
$Id: ObjectResolver.java 38 2008-10-25 23:11:02Z pangloss $
Author:
Edwin Shin

Method Summary
 UnapiFormats getFormats()
          Provide the object formats which should be supported for all objects available through the unAPI service.
 UnapiFormats getFormats(java.lang.String id)
          Provide a list of object formats available from the unAPI service for the object identified by id.
 UnapiObject getObject(java.lang.String id, java.lang.String format)
          Return an UnapiObject representing the object specified by id in the format specified by format.
 

Method Detail

getFormats

UnapiFormats getFormats()
                        throws UnapiException
Provide the object formats which should be supported for all objects available through the unAPI service.

Returns:
UnapiFormats representing the object formats supported for all objects.
Throws:
UnapiException

getFormats

UnapiFormats getFormats(java.lang.String id)
                        throws UnapiException
Provide a list of object formats available from the unAPI service for the object identified by id. It is similar to the getFormats response, but the returned UnapiFormats object must have the requested id set.

Parameters:
id -
Returns:
UnapiFormats representing the object formats supported for the requested object.
Throws:
UnapiException

getObject

UnapiObject getObject(java.lang.String id,
                      java.lang.String format)
                      throws UnapiException

Return an UnapiObject representing the object specified by id in the format specified by format.

Implementations should throw an IdentifierException for requests for an identifier that is not available on the server. Implementations should throw a FormatException for requests for an identifier that is available on the server in a format that is not available for that identifier.

Parameters:
id -
format -
Returns:
UnapiObject
Throws:
UnapiException


Copyright © 2008 Fedora Commons, Inc.. All Rights Reserved.