Package nl.b3p.csw.client
Class CswClient
- java.lang.Object
-
- nl.b3p.csw.client.CswClient
-
public class CswClient extends Object
- Author:
- Erik van de Pol
-
-
Field Summary
Fields Modifier and Type Field Description protected StringCSW_XSD_PATHprotected SchemacswSchemaprotected static org.apache.commons.logging.Loglogprotected CswServableserver
-
Constructor Summary
Constructors Modifier Constructor Description protectedCswClient()CswClient(CswServable server)CswClient(CswServable server, String cswSchemaPath)
-
Method Summary
-
-
-
Field Detail
-
log
protected static org.apache.commons.logging.Log log
-
server
protected CswServable server
-
cswSchema
protected Schema cswSchema
-
CSW_XSD_PATH
protected String CSW_XSD_PATH
-
-
Constructor Detail
-
CswClient
protected CswClient()
-
CswClient
public CswClient(CswServable server)
-
CswClient
public CswClient(CswServable server, String cswSchemaPath)
-
-
Method Detail
-
getServer
public CswServable getServer()
-
setServer
public void setServer(CswServable server)
-
getCswSchema
public Schema getCswSchema()
-
setCswSchema
public void setCswSchema(Schema schema)
-
setCswSchema
public void setCswSchema(String validationPath) throws SAXException, URISyntaxException
- Throws:
SAXExceptionURISyntaxException
-
search
public OutputById search(InputById input) throws IOException, org.jdom2.JDOMException, javax.xml.bind.JAXBException, OwsException
- Throws:
IOExceptionorg.jdom2.JDOMExceptionjavax.xml.bind.JAXBExceptionOwsException
-
search
public OutputBySearch search(InputBySearch input) throws IOException, org.jdom2.JDOMException, javax.xml.bind.JAXBException, OwsException
- Throws:
IOExceptionorg.jdom2.JDOMExceptionjavax.xml.bind.JAXBExceptionOwsException
-
doRequest
protected org.jdom2.Document doRequest(javax.xml.bind.JAXBElement jaxbElement, boolean transaction) throws IOException, org.jdom2.JDOMException, javax.xml.bind.JAXBException, OwsException- Throws:
IOExceptionorg.jdom2.JDOMExceptionjavax.xml.bind.JAXBExceptionOwsException
-
createTransaction
protected Transaction createTransaction(Object object)
-
createTransactionResponse
protected TransactionResponse createTransactionResponse(org.jdom2.Document responseDocument) throws org.jdom2.JDOMException, javax.xml.bind.JAXBException
- Throws:
org.jdom2.JDOMExceptionjavax.xml.bind.JAXBException
-
createInsertType
protected InsertType createInsertType(Document document)
-
insert
public TransactionResponse insert(Document document) throws IOException, org.jdom2.JDOMException, javax.xml.bind.JAXBException, OwsException
- Throws:
IOExceptionorg.jdom2.JDOMExceptionjavax.xml.bind.JAXBExceptionOwsException
-
insert
public TransactionResponse insert(InsertType insertType) throws IOException, org.jdom2.JDOMException, javax.xml.bind.JAXBException, OwsException
- Throws:
IOExceptionorg.jdom2.JDOMExceptionjavax.xml.bind.JAXBExceptionOwsException
-
update
public TransactionResponse update(String fileIdentifier, Document document) throws Exception
- Throws:
Exception
-
update
public TransactionResponse update(org.jdom2.Document document) throws IOException, org.jdom2.JDOMException, javax.xml.bind.JAXBException, OwsException
- Throws:
IOExceptionorg.jdom2.JDOMExceptionjavax.xml.bind.JAXBExceptionOwsException
-
update
public TransactionResponse update(UpdateType updateType) throws IOException, org.jdom2.JDOMException, javax.xml.bind.JAXBException, OwsException
- Throws:
IOExceptionorg.jdom2.JDOMExceptionjavax.xml.bind.JAXBExceptionOwsException
-
createDeleteType
public DeleteType createDeleteType(String uuid)
-
createDeleteType
public DeleteType createDeleteType(String[] uuids)
-
delete
public TransactionResponse delete(String uuid) throws IOException, org.jdom2.JDOMException, javax.xml.bind.JAXBException, OwsException
- Throws:
IOExceptionorg.jdom2.JDOMExceptionjavax.xml.bind.JAXBExceptionOwsException
-
delete
public TransactionResponse delete(DeleteType deleteType) throws IOException, org.jdom2.JDOMException, javax.xml.bind.JAXBException, OwsException
- Throws:
IOExceptionorg.jdom2.JDOMExceptionjavax.xml.bind.JAXBExceptionOwsException
-
harvest
public HarvestResponse harvest(HarvestType harvestType) throws IOException, org.jdom2.JDOMException, javax.xml.bind.JAXBException, OwsException
- Throws:
IOExceptionorg.jdom2.JDOMExceptionjavax.xml.bind.JAXBExceptionOwsException
-
main
public static void main(String[] args)
-
-