public class CSWClient extends Object
| Constructor and Description |
|---|
CSWClient() |
| Modifier and Type | Method and Description |
|---|---|
Document |
getCapabilities(URI uri)
Retrieves a complete capabilities document from the specified endpoint.
|
Document |
getOpenSearchDescription(URI uri)
Retrieves an OpenSearch description document from the IUT.
|
Document |
getServiceDescription() |
File |
saveFullRecords(int maxRecords,
javax.ws.rs.core.MediaType mediaType)
Submits a GetRecords request and saves the response entity to a
(temporary) file.
|
void |
setServiceDescription(Document capabilities) |
public Document getServiceDescription()
public void setServiceDescription(Document capabilities)
public File saveFullRecords(int maxRecords, javax.ws.rs.core.MediaType mediaType)
maxRecords - The maximum number of records to retrieve.mediaType - The preferred response media type; this will constitute
the value of the Accept header field (generic XML or Atom content).public Document getCapabilities(URI uri)
uri - An absolute URI from which the capabilities can be retrieved;
if null, the endpoint from a known capabilities document (which may
differ from the one presented by the IUT) is used.public Document getOpenSearchDescription(URI uri)
Accept header indicates
a preference for the following media types:
An alternative endpoint may be presented in the capabilities document using the "OpenSearchDescriptionDocument" constraint.
uri - An absolute URI from which the OpenSearch description can be
retrieved; if null, the default endpoint is used.Copyright © 2018 Open Geospatial Consortium. All rights reserved.