Revision 16170 trunk/applications/appCatalogAndGazetteerClient/src/es/gva/cit/catalog/csw/drivers/CSWCatalogServiceDriver.java
CSWCatalogServiceDriver.java | ||
---|---|---|
90 | 90 |
nodes = new HTTPGetProtocol().doQuery(url, CSWAbstractMessages.getHTTPGETCapabilities(), 0); |
91 | 91 |
CSWCapabilitiesParser parser = new CSWCapabilitiesParser(url, this); |
92 | 92 |
capabilities = parser.parse((XMLNode)nodes.toArray()[0]); |
93 |
//There are servers that need the getCapabilities operation (instead of GetCapabilities) |
|
94 |
if (!(capabilities.isAvailable()) && (capabilities.getException() != null)){ |
|
95 |
CSWException exception = capabilities.getException(); |
|
96 |
if ((exception.getCode().equals(CSWException.CODE_ERROR)) && |
|
97 |
(exception.getSubcode().equals(CSWException.SUBCODE_ERROR))){ |
|
98 |
nodes = new HTTPGetProtocol().doQuery(url, CSWAbstractMessages.getHTTPGETCapabilitiesLower(), 0); |
|
99 |
capabilities = parser.parse((XMLNode)nodes.toArray()[0]); |
|
100 |
} |
|
101 |
} |
|
93 | 102 |
//If the version can be retrieved the CSWAbstractMessages object |
94 | 103 |
//cant be created |
95 | 104 |
setMessages(uri,url); |
Also available in: Unified diff