public final class TLcdCSWOpenSearchTemplate extends Object
builder
.
Here's an example to create the template
http://example.com/?q={searchTerms}&pw={startPage?}&format=rss
TLcdCSWOpenSearchTemplate template = TLcdCSWOpenSearchTemplate.newBuilder()
.addAnyTextKeyword("q")
.addStartPageKeyword("pw", true)
.outputFormat(OutputFormat.ATOM)
.build();
Modifier and Type | Class and Description |
---|---|
static class |
TLcdCSWOpenSearchTemplate.Builder
Builder class for
TLcdCSWOpenSearchTemplate instances. |
Modifier and Type | Field and Description |
---|---|
static QName |
COUNT_QNAME
Allows specifying the number of search results per page desired by the search client.
|
static QName |
GEO_BOX_QNAME
Allows specifying the bounding box to search for geospatial results within.
|
static QName |
GEO_GEOMETRY_QNAME
Allows specifying a geometry defined using the Well Known Text (WKT) standard (e.g.
|
static QName |
GEO_LAT_QNAME
Allows specifying the latitude in decimal degrees in EPSG:4326 (WGS 84).
|
static QName |
GEO_LON_QNAME
Allows specifying the longitude in decimal degrees in EPSG:4326 (WGS 84).
|
static QName |
GEO_RADIUS_QNAME
Allows specifying the search distance from the provided longitude and latitude.
|
static QName |
GEO_RELATION_QNAME
Allows specifying the spatial relation of the search.
|
static QName |
GEO_UID_QNAME
Allows specifying the identifier of the resource within the search engine context.
|
static QName |
SEARCH_TERMS_QNAME
Allows specifying the OpenSearch "searchTerms" parameter, matching one or more keywords.
|
static QName |
START_INDEX_QNAME
Allows specifying the index of the first search result.
|
static QName |
START_PAGE_QNAME
Allows specifying the page number of the set of search results desired by the search client.
|
static QName |
TIME_END_QNAME
Allows specifying the end time formatted as YYYY-MM-DDTHH:mm:ssZ, cfr RFC-3339 (e.g.
|
static QName |
TIME_RELATION_QNAME
Allows specifying the temporal relation to use when specifying the time parameters.
|
static QName |
TIME_START_QNAME
Allows specifying the start time formatted as YYYY-MM-DDTHH:mm:ssZ, cfr RFC-3339 (e.g.
|
Modifier and Type | Method and Description |
---|---|
Set<QName> |
getAllParameters()
Gets all parameters that are part of this template
|
Set<String> |
getKeys()
Gets a list of keys defined by this
TLcdCSWOpenSearchTemplate |
TLcdCSWRecordType |
getOutputFormat()
Gets the output format for this template
|
List<QName> |
getParameters(String aKey)
Gets the parameter value for the given key
|
Boolean |
isKeyOptional(String aKey)
Checks whether the given key is optional.
|
static TLcdCSWOpenSearchTemplate.Builder |
newBuilder()
Creates a new builder for OpenSearch templates.
|
String |
toString()
Creates a KVP string for this template, as described in the OpenSearch standard.
|
public static final QName START_PAGE_QNAME
public static final QName START_INDEX_QNAME
public static final QName COUNT_QNAME
public static final QName GEO_BOX_QNAME
public static final QName GEO_UID_QNAME
public static final QName GEO_GEOMETRY_QNAME
public static final QName GEO_RELATION_QNAME
public static final QName GEO_LON_QNAME
public static final QName GEO_LAT_QNAME
public static final QName GEO_RADIUS_QNAME
public static final QName TIME_START_QNAME
public static final QName TIME_END_QNAME
public static final QName TIME_RELATION_QNAME
TLcdOGCTemporalFilterCapabilities
public static final QName SEARCH_TERMS_QNAME
public TLcdCSWRecordType getOutputFormat()
public Set<String> getKeys()
TLcdCSWOpenSearchTemplate
public Set<QName> getAllParameters()
public Boolean isKeyOptional(String aKey)
aKey
- a keypublic List<QName> getParameters(String aKey)
aKey
- a keypublic String toString()
public static TLcdCSWOpenSearchTemplate.Builder newBuilder()
TLcdCSWOpenSearchTemplate.Builder.build()