本文整理汇总了Java中net.opengis.swes.x20.DescribeSensorDocument类的典型用法代码示例。如果您正苦于以下问题:Java DescribeSensorDocument类的具体用法?Java DescribeSensorDocument怎么用?Java DescribeSensorDocument使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DescribeSensorDocument类属于net.opengis.swes.x20包,在下文中一共展示了DescribeSensorDocument类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: sendDescribeSensorRequestViaPox
import net.opengis.swes.x20.DescribeSensorDocument; //导入依赖的package包/类
private XmlObject sendDescribeSensorRequestViaPox(String version, String procedure, String procedureDescriptionFormat) {
DescribeSensorDocument document = DescribeSensorDocument.Factory.newInstance();
DescribeSensorType describeSensorRequest = document.addNewDescribeSensor();
describeSensorRequest.setService(SosConstants.SOS);
describeSensorRequest.setVersion(version);
describeSensorRequest.setProcedure(procedure);
describeSensorRequest.setProcedureDescriptionFormat(procedureDescriptionFormat);
XmlObject responseXml = pox().entity(document.xmlText(XML_OPTIONS)).response().asXmlObject();
return responseXml;
}
示例2: sendDescribeSensorRequestViaPox
import net.opengis.swes.x20.DescribeSensorDocument; //导入依赖的package包/类
protected XmlObject sendDescribeSensorRequestViaPox(String version, String procedure, String procedureDescriptionFormat) {
DescribeSensorDocument document = DescribeSensorDocument.Factory.newInstance();
DescribeSensorType describeSensorRequest = document.addNewDescribeSensor();
describeSensorRequest.setService(SosConstants.SOS);
describeSensorRequest.setVersion(version);
describeSensorRequest.setProcedure(procedure);
describeSensorRequest.setProcedureDescriptionFormat(procedureDescriptionFormat);
XmlObject responseXml = pox().entity(document.xmlText(XML_OPTIONS)).response().asXmlObject();
return responseXml;
}
示例3: missingServiceParameter
import net.opengis.swes.x20.DescribeSensorDocument; //导入依赖的package包/类
@Override
@Test
public void missingServiceParameter() throws XmlException {
DescribeSensorDocument describeSensorDocument =
getRequest("procedure", "procedureDescriptionFormat");
addVersionParameter(describeSensorDocument.getDescribeSensor());
missingServiceParameter(describeSensorDocument.getDescribeSensor(), describeSensorDocument);
}
示例4: emptyServiceParameter
import net.opengis.swes.x20.DescribeSensorDocument; //导入依赖的package包/类
@Override
@Test
public void emptyServiceParameter() throws XmlException {
DescribeSensorDocument describeSensorDocument =
getRequest("procedure", "procedureDescriptionFormat");
addVersionParameter(describeSensorDocument.getDescribeSensor());
emptyServiceParameter(describeSensorDocument.getDescribeSensor(), describeSensorDocument);
}
示例5: invalidServiceParameter
import net.opengis.swes.x20.DescribeSensorDocument; //导入依赖的package包/类
@Override
@Test
public void invalidServiceParameter() throws XmlException {
DescribeSensorDocument describeSensorDocument =
getRequest("procedure", "procedureDescriptionFormat");
addVersionParameter(describeSensorDocument.getDescribeSensor());
invalidServiceParameter(describeSensorDocument.getDescribeSensor(), describeSensorDocument);
}
示例6: getRequest
import net.opengis.swes.x20.DescribeSensorDocument; //导入依赖的package包/类
protected DescribeSensorDocument getRequest(String procedure,
String procedureDescriptionFormat) {
DescribeSensorDocument describeSensorDocument =
DescribeSensorDocument.Factory.newInstance();
DescribeSensorType describeSensorType = describeSensorDocument
.addNewDescribeSensor();
describeSensorType.setProcedure(procedure);
describeSensorType
.setProcedureDescriptionFormat(procedureDescriptionFormat);
return describeSensorDocument;
}