public class GeoNetworkCswServer extends Object implements CswServable<org.jdom.Document>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.client.CookieStore |
cookieStore |
protected String |
cswDiscoveryUrl |
protected String |
cswPassword |
protected String |
cswPublicationUrl |
protected String |
cswUser |
protected static org.apache.commons.logging.Log |
log |
protected String |
loginUrl |
protected ResponseListenable<org.jdom.Document> |
responseListenable |
| Constructor and Description |
|---|
GeoNetworkCswServer(String loginUrl,
String cswUrl,
String cswUser,
String cswPassword) |
GeoNetworkCswServer(String loginUrl,
String cswUrl,
String cswUser,
String cswPassword,
ResponseListenable responseListenable) |
| Modifier and Type | Method and Description |
|---|---|
org.jdom.Document |
doRequest(String cswRequestXml,
boolean transaction)
Posts cswRequestXml to the server.
|
ResponseListenable |
getResponseListenable() |
protected boolean |
httpPostCswLoginRequest(String url,
String username,
String password) |
protected org.jdom.Document |
httpPostCswRequest(String request,
String url) |
protected org.jdom.Document |
httpPostCswRequest(String request,
String url,
String username,
String password) |
protected boolean |
login(String url,
String username,
String password) |
void |
setResponseListenable(ResponseListenable responseListenable) |
protected static org.apache.commons.logging.Log log
protected org.apache.http.client.CookieStore cookieStore
protected String cswDiscoveryUrl
protected String cswPublicationUrl
protected String loginUrl
protected String cswUser
protected String cswPassword
protected ResponseListenable<org.jdom.Document> responseListenable
public GeoNetworkCswServer(String loginUrl, String cswUrl, String cswUser, String cswPassword)
public GeoNetworkCswServer(String loginUrl, String cswUrl, String cswUser, String cswPassword, ResponseListenable responseListenable)
public ResponseListenable getResponseListenable()
public void setResponseListenable(ResponseListenable responseListenable)
public org.jdom.Document doRequest(String cswRequestXml, boolean transaction) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
CswServabledoRequest in interface CswServable<org.jdom.Document>IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionprotected boolean login(String url, String username, String password) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionprotected boolean httpPostCswLoginRequest(String url, String username, String password) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionprotected org.jdom.Document httpPostCswRequest(String request, String url) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionprotected org.jdom.Document httpPostCswRequest(String request, String url, String username, String password) throws IOException, org.jdom.JDOMException, JAXBException, OwsException
IOExceptionorg.jdom.JDOMExceptionJAXBExceptionOwsExceptionCopyright © 2015. All rights reserved.