@Controller public final class OAIController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OAIController.DELETED_SUPPORT |
static class |
OAIController.OAI_VERBS |
| Constructor and Description |
|---|
OAIController() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearOaiCaches() |
String |
date()
Model attribute for the date of response.
|
String |
getBaseUrl() |
String |
getDateGranularity() |
String |
getDeletedRecordSupport() |
String |
getEarliestDatestamp() |
String |
getForwardedUrlHeaderName() |
String |
getRepoEmail() |
String |
getRepoName() |
String |
oai(org.springframework.ui.ModelMap map,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
url(javax.servlet.http.HttpServletRequest request) |
@RequestMapping(value="/oai/clearCaches.do")
@ResponseStatus(value=OK)
public void clearOaiCaches()
throws OaiPublisherException
OaiPublisherException@RequestMapping(value="/oai/oai.do") public String oai(org.springframework.ui.ModelMap map, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception@ModelAttribute(value="url") public String url(javax.servlet.http.HttpServletRequest request)
@ModelAttribute(value="date") public String date()
According to OAI-PMH protocol, it must be in UTC with format YYYY-MM-DDThh:mm:ssZ, where Z is the time zone ('Z' for "Zulu Time", i.e. UTC).
See http://www.openarchives.org/OAI/openarchivesprotocol.html#Dates
@ModelAttribute(value="repoName") public String getRepoName()
@ModelAttribute(value="email") public String getRepoEmail()
@ModelAttribute(value="earliestDatestamp") public String getEarliestDatestamp()
public String getBaseUrl()
public String getForwardedUrlHeaderName()
@ModelAttribute(value="deletedRecord") public String getDeletedRecordSupport()
@ModelAttribute(value="granularity") public String getDateGranularity()
Copyright © 2018. All rights reserved.