%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="org.apache.axiom.om.OMAttribute"%>
<%@ page import="org.apache.axiom.om.OMElement"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="org.deegree.client.sos.storage.*"%>
<%@ page import="org.deegree.client.sos.storage.components.*"%>
<%@ page import="org.deegree.client.sos.utils.*"%>
<%@ page import="org.deegree.commons.utils.Pair"%>
<%
StorageGetCapabilities storage = (StorageGetCapabilities) request.getAttribute( "storage" );
List> serviceidentification = storage.getServiceIdentification();
List> serviceprovider = storage.getServiceProvider();
%>
ServiceIdentification:
<%
for (Pair pair : serviceidentification){
%>
<%= pair.first %>
<%= pair.second %>
<%
}
%>
ServiceProvider:
<%
for (Pair pair : serviceprovider){
%>
<%= pair.first %>
<%= pair.second %>
<%
}
%>
OperationsMetadata:
<%
List operationsMetadata = storage.getOperationsMetadata();
for (Operation operation : operationsMetadata){
%>
OperationName
<%= operation.getName() %>
<%
List> http = operation.getHttp();
for(Pair pair : http){
%>
<%= pair.first %>
<%= pair.second %>
<%
}
if (operation.getParameters().size() > 0){
List parameters = operation.getParameters();
for (Parameter parameter : parameters){
List allowedValues = parameter.getAllowedValues();
for (String value : allowedValues){
%>
<%= parameter.getName() %>
<%= value %>
<%
}
}
}
}
%>
Filter_Capabilities:
<%
Filter_Capabilities filter_Capabilities = storage.getFilter_Capabilities();
List geometryOperands = filter_Capabilities.getGeometryOperands();
for (String geometryOperand : geometryOperands){
%>
GeometryOperand
<%= geometryOperand %>
<%
}
List spatialOperators = filter_Capabilities.getSpatialOperators();
for (Operator spatialOperator : spatialOperators){
%>
SpatialOperator
<%= spatialOperator.getName() %>
<%
if (spatialOperator.getOperands() != null){
List operandsFromSpatialOperator = spatialOperator.getOperands();
for (String operand : operandsFromSpatialOperator){
%>
GeometryOperand of SpatialOperator
<%= operand %>
<%
}
}
}
List temporalOperands = filter_Capabilities.getTemporalOperands();
for (String temporalOperand : temporalOperands){
%>
TemporalOperand
<%= temporalOperand %>
<%
}
List temporalOperators = filter_Capabilities.getTemporalOperators();
for (Operator temporalOperator : temporalOperators){
%>
TemporalOperator
<%= temporalOperator.getName() %>
<%
if (temporalOperator.getOperands() != null){
List operandsFromTemporalOperator = temporalOperator.getOperands();
for (String operand : operandsFromTemporalOperator){
%>
TemporalOperand of TemporalOperator
<%= operand %>
<%
}
}
}
List comparisonOperators = filter_Capabilities.getComparisonOperators();
for (String comparisonOperator : comparisonOperators){
%>
ComparisonOperator
<%= comparisonOperator %>
<%
}
if (filter_Capabilities.getArithmeticOperators() != null){
OMElement arithmeticOperators = filter_Capabilities.getArithmeticOperators();
%>
<%= arithmeticOperators.getLocalName() %>
<%= arithmeticOperators.getText() %>
<%
}
if (filter_Capabilities.getLogicalOperators() != null){
OMElement logicalOperators = filter_Capabilities.getLogicalOperators();
%>
<%= logicalOperators.getLocalName() %>
<%= logicalOperators.getText() %>
<%
}
OMElement id_Capabilities = filter_Capabilities.getId_Capabilities();
%>
Id_Capabilities
<%= id_Capabilities.getLocalName() %>
Contents:
<%
List contents = storage.getContents();
for (ObservationOffering offering : contents){
%>
OfferingId: <%= offering.getId() %>
<%
List metadata = offering.getMetadata();
for (OMElement element : metadata){
%>
<%= element.getLocalName() %>
<%= element.getText() %>
<%
Iterator attributes;
for (attributes = element.getAllAttributes(); attributes.hasNext();){
OMAttribute attribute = attributes.next();
%>
<%= attribute.getLocalName() %>
<%= attribute.getAttributeValue() %>
<%
}
}
BoundedBy boundedBy = offering.getBoundedBy();
%>
BoundedBy
<%= boundedBy.getType() %>
<%
if (boundedBy.getAttributes().size() > 0){
List attributes = boundedBy.getAttributes();
for(OMAttribute attribute : attributes){
%>
Attribute: <%= attribute.getLocalName() %>
<%= attribute.getAttributeValue() %>
<%
}
}
List elements = boundedBy.getElements();
if (elements.size() > 0){
for (OMElement element : elements){
%>
<%= element.getLocalName() %>
<%= element.getText() %>
<%
}
}
String text = boundedBy.getText();
if (text!=null && !text.trim().equals("")){
%>
Text
<%= text %>
<%
}
List intendedApplications = offering.getIntendedApplications();
for (OMElement element : intendedApplications){
%>
<%= element.getLocalName() %>
<%= element.getText() %>
<%
Iterator attributes;
for (attributes = element.getAllAttributes(); attributes.hasNext();){
OMAttribute attribute = attributes.next();
%>
<%= attribute.getLocalName() %>
<%= attribute.getAttributeValue() %>
<%
}
}
Time time = offering.getTime();
List attributesOfTime = time.getAttributesOfTime();
for (OMAttribute attributeOfTime : attributesOfTime){
%>
TimeAttribute <%= attributeOfTime.getLocalName() %>
<%= attributeOfTime.getAttributeValue() %>
<%
}
if (!time.getIsNull()){
elements = time.getElements();
for (OMElement element : elements){
%>
<%= element.getLocalName() %>
<%= element.getText() %>
<%
}
}
List procedures = offering.getProcedures();
for(String procedure : procedures){
%>
procedure
<%= procedure %>
<%
}
List observedProperties = offering.getObservedProperties();
for (String observedProperty : observedProperties){
%>
observedProperty
<%= observedProperty %>
<%
}
elements = offering.getFeaturesOfInterest();
for(OMElement element : elements){
if(!element.getText().trim().equals("")){
%>
<%= element.getLocalName() %>
<%= element.getText() %>
<%
}
Iterator attributes;
for (attributes = element.getAllAttributes(); attributes.hasNext();){
OMAttribute attribute = attributes.next();
%>
<%= element.getLocalName() %>: <%= attribute.getLocalName() %>
<%= attribute.getAttributeValue() %>
<%
}
}
elements = offering.getResponseFormats();
for(OMElement element : elements){
if(!element.getText().trim().equals("")){
%>
<%= element.getLocalName() %>
<%= element.getText() %>
<%
}
Iterator attributes;
for (attributes = element.getAllAttributes(); attributes.hasNext();){
OMAttribute attribute = attributes.next();
%>
<%= element.getLocalName() %>: <%= attribute.getLocalName() %>
<%= attribute.getAttributeValue() %>
<%
}
}
elements = offering.getResponseModes();
for(OMElement element : elements){
if(!element.getText().trim().equals("")){
%>
<%= element.getLocalName() %>
<%= element.getText() %>
<%
}
Iterator attributes;
for (attributes = element.getAllAttributes(); attributes.hasNext();){
OMAttribute attribute = attributes.next();
%>
<%= element.getLocalName() %>: <%= attribute.getLocalName() %>
<%= attribute.getAttributeValue() %>
<%
}
}
elements = offering.getResultModels();
for(OMElement element : elements){
if(!element.getText().trim().equals("")){
%>
<%= element.getLocalName() %>
<%= element.getText() %>
<%
}
Iterator attributes;
for (attributes = element.getAllAttributes(); attributes.hasNext();){
OMAttribute attribute = attributes.next();
%>
<%= element.getLocalName() %>: <%= attribute.getLocalName() %>
<%= attribute.getAttributeValue() %>
<%
}
}
}
%>
To continue, choose a button and click on it: