public class CswClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
CSW_XSD_PATH |
protected Schema |
cswSchema |
protected static org.apache.commons.logging.Log |
log |
protected CswServable |
server |
| Modifier | Constructor and Description |
|---|---|
protected |
CswClient() |
|
CswClient(CswServable server) |
|
CswClient(CswServable server,
String cswSchemaPath) |
protected static org.apache.commons.logging.Log log
protected CswServable server
protected Schema cswSchema
protected String CSW_XSD_PATH
protected CswClient()
public CswClient(CswServable server)
public CswClient(CswServable server, String cswSchemaPath)
public CswServable getServer()
public void setServer(CswServable server)
public Schema getCswSchema()
public void setCswSchema(Schema schema)
public void setCswSchema(String validationPath) throws SAXException, URISyntaxException
SAXExceptionURISyntaxExceptionpublic OutputById search(InputById input) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionpublic OutputBySearch search(InputBySearch input) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionprotected org.jdom.Document doRequest(JAXBElement jaxbElement, boolean transaction) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionprotected Transaction createTransaction(Object object)
protected TransactionResponse createTransactionResponse(org.jdom.Document responseDocument) throws org.jdom.JDOMException, JAXBException
org.jdom.JDOMExceptionJAXBExceptionprotected InsertType createInsertType(Document document)
public TransactionResponse insert(Document document) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionpublic TransactionResponse insert(InsertType insertType) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionpublic TransactionResponse update(String fileIdentifier, Document document) throws Exception
Exceptionpublic TransactionResponse update(org.jdom.Document document) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionpublic TransactionResponse update(UpdateType updateType) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionpublic DeleteType createDeleteType(String uuid)
public DeleteType createDeleteType(String[] uuids)
public TransactionResponse delete(String uuid) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionpublic TransactionResponse delete(DeleteType deleteType) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionpublic HarvestResponse harvest(HarvestType harvestType) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionpublic static void main(String[] args)
Copyright © 2015. All rights reserved.