public class SwordUrlManager extends Object
| Constructor and Description |
|---|
SwordUrlManager(SwordConfigurationDSpace config,
Context context) |
| Modifier and Type | Method and Description |
|---|---|
String |
constructSubServiceUrl(Collection collection)
Construct the service document URL for the given object, which will
be supplied in the sword:service element of other service document
entries.
|
String |
constructSubServiceUrl(Community community)
Construct the service document URL for the given object, which will
be supplied in the sword:service element of other service document
entries.
|
DSpaceObject |
extractDSpaceObject(String url)
Extract a DSpaceObject from the given URL.
|
String |
getActionableBitstreamUrl(Bitstream bitstream) |
String |
getAggregationUrl(Item item) |
String |
getAtomStatementUri(Item item) |
String |
getBaseCollectionUrl()
Get the base deposit URL for the DSpace SWORD implementation.
|
String |
getBaseServiceDocumentUrl()
Get the base URL for service document requests.
|
Bitstream |
getBitstream(Context context,
String location) |
String |
getBitstreamUrl(Bitstream bitstream)
Central location for constructing usable URLs for DSpace bitstreams.
|
Collection |
getCollection(Context context,
String location)
Obtain the collection which is represented by the given
URL
|
org.apache.abdera.i18n.iri.IRI |
getContentUrl(Item item) |
String |
getDepositLocation(Collection collection)
Obtain the deposit URL for the given collection.
|
String |
getDepositLocation(Community community)
Obtain the deposit URL for the given community.
|
org.apache.abdera.i18n.iri.IRI |
getEditIRI(Item item) |
Item |
getItem(Context context,
String location) |
org.apache.abdera.i18n.iri.IRI |
getMediaFeedUrl(Item item) |
String |
getOreStatementUri(Item item) |
String |
getSplashUrl(Item item) |
String |
getSwordBaseUrl() |
String |
getTypeSuffix(Context context,
String location) |
boolean |
isActionableBitstreamUrl(Context context,
String url) |
boolean |
isBaseServiceDocumentUrl(String url)
Is the given URL the base service document URL?
|
boolean |
isFeedRequest(Context context,
String url) |
public SwordUrlManager(SwordConfigurationDSpace config, Context context)
public String getDepositLocation(Collection collection) throws DSpaceSwordException
collection - DSpaceSwordExceptionpublic String getDepositLocation(Community community) throws DSpaceSwordException
community - DSpaceSwordExceptionpublic String getSwordBaseUrl() throws DSpaceSwordException
DSpaceSwordExceptionpublic Item getItem(Context context, String location) throws DSpaceSwordException, org.swordapp.server.SwordError
DSpaceSwordExceptionorg.swordapp.server.SwordErrorpublic Collection getCollection(Context context, String location) throws DSpaceSwordException, org.swordapp.server.SwordError
context - the DSpace contextlocation - the URL to resolve to a collectionDSpaceSwordExceptionorg.swordapp.server.SwordErrorpublic String constructSubServiceUrl(Community community) throws DSpaceSwordException
community - DSpaceSwordExceptionpublic String constructSubServiceUrl(Collection collection) throws DSpaceSwordException
collection - DSpaceSwordExceptionpublic DSpaceObject extractDSpaceObject(String url) throws DSpaceSwordException, org.swordapp.server.SwordError
url - DSpaceSwordExceptionorg.swordapp.server.SwordErrorpublic String getBaseServiceDocumentUrl() throws DSpaceSwordException
DSpaceSwordExceptionpublic String getBaseCollectionUrl() throws DSpaceSwordException
DSpaceSwordExceptionpublic boolean isBaseServiceDocumentUrl(String url) throws DSpaceSwordException
url - DSpaceSwordExceptionpublic String getBitstreamUrl(Bitstream bitstream) throws DSpaceSwordException
bitstream - DSpaceSwordExceptionpublic String getActionableBitstreamUrl(Bitstream bitstream) throws DSpaceSwordException
DSpaceSwordExceptionpublic Bitstream getBitstream(Context context, String location) throws DSpaceSwordException, org.swordapp.server.SwordError
DSpaceSwordExceptionorg.swordapp.server.SwordErrorpublic String getAtomStatementUri(Item item) throws DSpaceSwordException
DSpaceSwordExceptionpublic String getOreStatementUri(Item item) throws DSpaceSwordException
DSpaceSwordExceptionpublic String getAggregationUrl(Item item) throws DSpaceSwordException
DSpaceSwordExceptionpublic org.apache.abdera.i18n.iri.IRI getEditIRI(Item item) throws DSpaceSwordException
DSpaceSwordExceptionpublic String getSplashUrl(Item item) throws DSpaceSwordException
DSpaceSwordExceptionpublic org.apache.abdera.i18n.iri.IRI getContentUrl(Item item) throws DSpaceSwordException
DSpaceSwordExceptionpublic org.apache.abdera.i18n.iri.IRI getMediaFeedUrl(Item item) throws DSpaceSwordException
DSpaceSwordExceptionCopyright © 2013 DuraSpace. All Rights Reserved.