public class GetCapabilitiesValidation extends DataFixture
dataFile, executeHttpGetUri, executeRequestFileRawDataOutputSubject, executeRequestFileResponseDocumentOutputSubject, executeRequestFileUpdatingResponseDocumentOutputSubject, model, originalSubject, Resource_GML_Path, Resource_SWE_Path, testSubject, testSubjectUri| Constructor and Description |
|---|
GetCapabilitiesValidation() |
| Modifier and Type | Method and Description |
|---|---|
String |
CheckXPath2(String xpath,
Document testSubject)
Check XPath2.0
|
String |
CheckXPath2(String xpath,
String response) |
net.sf.saxon.s9api.XdmValue |
evaluateXPath2(Source xmlSource,
String expr,
Map<String,String> nsBindings)
Evaluates an XPath 2.0 expression using the Saxon s9api interfaces.
|
void |
GetCapabilitiesResponseValidation()
A.4.2.3 GetCapabilities operation response
|
HttpURLConnection |
getConnection(String serviceURL,
String param) |
HttpURLConnection |
GetConnection(String serviceURL,
String param) |
Map<String,String> |
getStandardBindings() |
void |
HandlingUpdateSequenceValidation()
A.4.2.5 Handling updateSequence parameter
|
void |
HTTPGETTransferredKVPGetCapabilitiesValidation()
A.4.2.1 Accept HTTP GET transferred KVP GetCapabilities operation request
|
void |
HTTPPOSTTransferredXMLGetCapabilitiesValidation()
A.4.2.2 Accept HTTP POST transferred XML GetCapabilities operation request
|
void |
LanguageSelectionGetCapabilitiesValidation()
A.4.2.6 Language selection
|
String |
postMessage(String xmlString,
String serviceURL) |
String |
sendGetRequest(String serviceURL,
String param) |
int |
sendHTTPGetRequestGetCapabilitiesOperationByVersion(String version) |
boolean |
validateXMLString(String inputXml,
String schemaLocation) |
void |
VersionNegotiationGetCapabilitiesValidation()
A.4.2.4 Version negotiation
|
CheckObservationTypeCategory, CheckObservationTypeCount, CheckObservationTypeMeasurement, CheckObservationTypeTruth, CheckXPath2, CheckXPath2Modified, CreateValidator, CreateValidatorFromXSD, evaluateXPath2Modified, generateXPathExpression, GetFileViaResourcePath, GetResultTypeHref, obtainTestSubject, SchemaElement, setDataFile, setSchemaModelpublic void HTTPGETTransferredKVPGetCapabilitiesValidation()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void HTTPPOSTTransferredXMLGetCapabilitiesValidation()
throws IOException,
URISyntaxException,
ParserConfigurationException,
SAXException
public void GetCapabilitiesResponseValidation()
throws IOException,
SAXException
IOExceptionSAXExceptionpublic void VersionNegotiationGetCapabilitiesValidation()
throws IOException,
net.sf.saxon.s9api.SaxonApiException,
SAXException,
ParserConfigurationException
IOExceptionnet.sf.saxon.s9api.SaxonApiExceptionSAXExceptionParserConfigurationExceptionpublic void HandlingUpdateSequenceValidation()
throws IOException,
SAXException
IOExceptionSAXExceptionpublic void LanguageSelectionGetCapabilitiesValidation()
throws IOException,
ParserConfigurationException,
SAXException,
net.sf.saxon.s9api.SaxonApiException
IOExceptionParserConfigurationExceptionSAXExceptionnet.sf.saxon.s9api.SaxonApiExceptionpublic int sendHTTPGetRequestGetCapabilitiesOperationByVersion(String version) throws IOException
IOExceptionpublic HttpURLConnection getConnection(String serviceURL, String param) throws IOException
IOExceptionpublic HttpURLConnection GetConnection(String serviceURL, String param) throws IOException
IOExceptionpublic String postMessage(String xmlString, String serviceURL) throws IOException
IOExceptionpublic String sendGetRequest(String serviceURL, String param) throws IOException
IOExceptionpublic String CheckXPath2(String xpath, Document testSubject)
xpath - String denoting an xpath syntaxpublic String CheckXPath2(String xpath, String response) throws ParserConfigurationException, SAXException, IOException
public net.sf.saxon.s9api.XdmValue evaluateXPath2(Source xmlSource, String expr, Map<String,String> nsBindings) throws net.sf.saxon.s9api.SaxonApiException
xmlSource - The XML Source.expr - The XPath expression to be evaluated.nsBindings - A collection of namespace bindings required to evaluate the
XPath expression, where each entry maps a namespace URI (key)
to a prefix (value); this may be null if not needed.net.sf.saxon.s9api.SaxonApiException - If an error occurs while evaluating the expression; this
always wraps some other underlying exception.public boolean validateXMLString(String inputXml, String schemaLocation) throws SAXException, IOException
SAXExceptionIOExceptionCopyright © 2021 Open Geospatial Consortium. All rights reserved.