public abstract class CswSource extends Object implements Source
| Modifier and Type | Field and Description |
|---|---|
protected JAXBContext |
context |
(package private) Optional<Collection<String>> |
namespaces |
protected Optional<Long> |
recordCount |
protected Unmarshaller |
unmarshaller |
DEFAULT_NAMESPACES, DEFAULT_OUTPUT_SCHEMA, DEFAULT_TYPE_NAME| Constructor and Description |
|---|
CswSource(String url,
Collection<String> namespaces,
NamespaceContext nsContext,
String typeName,
String outputSchema) |
CswSource(String url,
NamespaceContext nsContext) |
CswSource(URL url,
Collection<String> namespaces,
NamespaceContext nsContext,
String typeName,
String outputSchema) |
CswSource(URL url,
String namespacesParameter,
String typeName,
String outputSchema) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Supplier<? extends Long> |
getAndStoreRecordCount() |
URL |
getEndpoint() |
protected String |
getNamespacesParameter() |
protected Node |
getNode(JAXBElement<? extends net.opengis.csw.v_2_0_2.AbstractRecordType> record,
JAXBContext context,
DocumentBuilder db) |
String |
getOutputSchemaParameter() |
long |
getRecordCount() |
abstract Collection<SourceRecord> |
getRecords(long startPosition,
long maxRecords,
Report report) |
Collection<SourceRecord> |
getRecords(Report report) |
protected String |
getTypeNamesParameter() |
String |
toString() |
Optional<Collection<String>> namespaces
protected JAXBContext context
protected Unmarshaller unmarshaller
public CswSource(String url, NamespaceContext nsContext) throws MalformedURLException, JAXBException
MalformedURLExceptionJAXBExceptionpublic CswSource(String url, Collection<String> namespaces, NamespaceContext nsContext, String typeName, String outputSchema) throws MalformedURLException, JAXBException
MalformedURLExceptionJAXBExceptionpublic CswSource(URL url, String namespacesParameter, String typeName, String outputSchema) throws JAXBException
JAXBExceptionpublic CswSource(URL url, Collection<String> namespaces, NamespaceContext nsContext, String typeName, String outputSchema) throws JAXBException
JAXBExceptionpublic URL getEndpoint()
getEndpoint in interface Sourcepublic long getRecordCount()
getRecordCount in interface Sourcepublic Collection<SourceRecord> getRecords(Report report)
getRecords in interface Sourcepublic abstract Collection<SourceRecord> getRecords(long startPosition, long maxRecords, Report report)
getRecords in interface Sourceprotected Node getNode(JAXBElement<? extends net.opengis.csw.v_2_0_2.AbstractRecordType> record, JAXBContext context, DocumentBuilder db)
protected String getNamespacesParameter()
protected String getTypeNamesParameter()
public String getOutputSchemaParameter()
Copyright © 2015 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.