|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fedoracommons.funapi.pmh.AbstractPmhResolver
public abstract class AbstractPmhResolver
Constructor Summary | |
---|---|
AbstractPmhResolver()
|
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 . |
protected org.apache.commons.httpclient.HttpClient |
getHttpClient()
|
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 . |
protected abstract java.lang.String |
getPassword()
|
protected abstract java.net.URL |
getPmhBaseUrl()
|
protected abstract java.lang.String |
getPmhId(java.lang.String id)
|
protected abstract java.lang.String |
getUsername()
|
protected void |
setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
|
protected void |
setHttpMethod(org.apache.commons.httpclient.HttpMethod httpMethod)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPmhResolver()
Method Detail |
---|
public UnapiFormats getFormats() throws UnapiException
ObjectResolver
getFormats
in interface ObjectResolver
UnapiException
public UnapiFormats getFormats(java.lang.String id) throws UnapiException
ObjectResolver
id
.
It is similar to the getFormats
response, but the
returned UnapiFormats object must have the requested id
set.
getFormats
in interface ObjectResolver
UnapiException
public UnapiObject getObject(java.lang.String id, java.lang.String format) throws UnapiException
ObjectResolver
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.
getObject
in interface ObjectResolver
UnapiException
protected org.apache.commons.httpclient.HttpClient getHttpClient()
protected void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
protected void setHttpMethod(org.apache.commons.httpclient.HttpMethod httpMethod)
protected abstract java.lang.String getPmhId(java.lang.String id)
id
- an unAPI identifier
protected abstract java.net.URL getPmhBaseUrl()
protected abstract java.lang.String getUsername()
protected abstract java.lang.String getPassword()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |