|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectse.kb.oai.pmh.QueryBuilder
public class QueryBuilder
Helper class that builds the URL:s that corresponds to the different requests to the OAI-PMH server.
| Constructor Summary | |
|---|---|
QueryBuilder(String baseurl)
Creates a QueryBuilder for a specific OAI-PMH server. |
|
| Method Summary | |
|---|---|
String |
buildGetRecordQuery(String identifier,
String metadataPrefix)
Build the query for a GetRecord request. |
String |
buildIdentifyQuery()
Build the query for a Identify request. |
String |
buildListIdentifiersQuery(ResumptionToken token)
Build the query for an additional ListIdentifiers request
with a ResumptionToken. |
String |
buildListIdentifiersQuery(String metadataPrefix,
String from,
String until,
String set)
Build the query for a ListIdentifiers request. |
String |
buildListMetadataFormatsQuery(String identifier)
Build the query for a ListMetadtaFormats request. |
String |
buildListRecordsQuery(ResumptionToken token)
Build the query for an additional ListRecords request
with a ResumptionToken. |
String |
buildListRecordsQuery(String metadataPrefix,
String from,
String until,
String set)
Build the query for a ListRecords request. |
String |
buildListSetsQuery()
Build the query for a ListSets request. |
String |
buildListSetsQuery(ResumptionToken token)
Build the query for an additional ListSets request
with a ResumptionToken. |
String |
getBaseUrl()
Get the base URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryBuilder(String baseurl)
QueryBuilder for a specific OAI-PMH server.
baseurl - the base URL to the OAI-PMH server| Method Detail |
|---|
public String getBaseUrl()
public String buildGetRecordQuery(String identifier,
String metadataPrefix)
GetRecord request.
identifier - the identifiermetadataPrefix - the metadata prefix
Stringpublic String buildIdentifyQuery()
Identify request.
String
public String buildListIdentifiersQuery(String metadataPrefix,
String from,
String until,
String set)
ListIdentifiers request.
metadataPrefix - which metadata formatfrom - a start date, optional (may be null)until - a stop date, optional (may be null)set - a specific set, optional (may be null)
Stringpublic String buildListIdentifiersQuery(ResumptionToken token)
ListIdentifiers request
with a ResumptionToken.
token - a resumption token returned from a previous request
Stringpublic String buildListMetadataFormatsQuery(String identifier)
ListMetadtaFormats request.
identifier - the id, optional (may be null)
String
public String buildListRecordsQuery(String metadataPrefix,
String from,
String until,
String set)
ListRecords request.
metadataPrefix - which metadata formatfrom - a start date, optional (may be null)until - a stop date, optional (may be null)set - a specific set, optional (may be null)
Stringpublic String buildListRecordsQuery(ResumptionToken token)
ListRecords request
with a ResumptionToken.
token - a resumption token returned from a previous request
Stringpublic String buildListSetsQuery()
ListSets request.
Stringpublic String buildListSetsQuery(ResumptionToken token)
ListSets request
with a ResumptionToken.
token - a resumption token returned from a previous request
String
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||