|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.sword.SWORDUrlManager
public class SWORDUrlManager
| Constructor Summary | |
|---|---|
SWORDUrlManager(SWORDConfiguration config,
Context context)
|
|
| Method Summary | |
|---|---|
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 |
getBaseDepositUrl()
Get the base deposit URL for the DSpace SWORD implementation. |
String |
getBaseMediaLinkUrl()
get the base media link url |
String |
getBaseServiceDocumentUrl()
get the base url for service document requests |
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 |
String |
getDepositLocation(Collection collection)
Obtain the deposit URL for the given collection. |
String |
getDepositLocation(Community community)
Obtain the deposit URL for the given community. |
String |
getDepositLocation(Item item)
Obtain the deposit URL for the given item. |
DSpaceObject |
getDSpaceObject(Context context,
String location)
Obtain the collection which is represented by the given URL |
String |
getGeneratorUrl()
Get the generator url for atom entry documents. |
String |
getMediaLink(Bitstream bitstream)
get the media link url for the given bitstream |
boolean |
isBaseMediaLinkUrl(String url)
is the given url the base media link url |
boolean |
isBaseServiceDocumentUrl(String url)
is the given url the base service document url |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SWORDUrlManager(SWORDConfiguration config,
Context context)
| Method Detail |
|---|
public String getGeneratorUrl()
public String getDepositLocation(Collection collection)
throws DSpaceSWORDException
collection -
DSpaceSWORDException
public String getDepositLocation(Item item)
throws DSpaceSWORDException
item -
DSpaceSWORDException
public String getDepositLocation(Community community)
throws DSpaceSWORDException
community -
DSpaceSWORDException
public Collection getCollection(Context context,
String location)
throws DSpaceSWORDException,
SWORDErrorException
context - the DSpace contextlocation - the URL to resolve to a collection
DSpaceSWORDException
SWORDErrorException
public DSpaceObject getDSpaceObject(Context context,
String location)
throws DSpaceSWORDException,
SWORDErrorException
context - the DSpace contextlocation - the URL to resolve to a collection
DSpaceSWORDException
SWORDErrorException
public String constructSubServiceUrl(Community community)
throws DSpaceSWORDException
community -
DSpaceSWORDException
public String constructSubServiceUrl(Collection collection)
throws DSpaceSWORDException
collection -
DSpaceSWORDException
public DSpaceObject extractDSpaceObject(String url)
throws DSpaceSWORDException,
SWORDErrorException
url -
DSpaceSWORDException
SWORDErrorException
public String getBaseServiceDocumentUrl()
throws DSpaceSWORDException
DSpaceSWORDException
public String getBaseDepositUrl()
throws DSpaceSWORDException
DSpaceSWORDException
public boolean isBaseServiceDocumentUrl(String url)
throws DSpaceSWORDException
url -
DSpaceSWORDException
public boolean isBaseMediaLinkUrl(String url)
throws DSpaceSWORDException
url -
DSpaceSWORDException
public String getBitstreamUrl(Bitstream bitstream)
throws DSpaceSWORDException
bitstream -
DSpaceSWORDException
public String getBaseMediaLinkUrl()
throws DSpaceSWORDException
DSpaceSWORDException
public String getMediaLink(Bitstream bitstream)
throws DSpaceSWORDException
bitstream -
DSpaceSWORDException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||