use of org.geotoolkit.ows.xml.v100.ServiceIdentification in project geotoolkit by Geomatys.
the class CapabilitiesType method applySections.
@Override
public CapabilitiesType applySections(Sections sections) {
if (sections == null) {
sections = new SectionsType("All");
}
ServiceIdentification si = null;
ServiceProvider sp = null;
OperationsMetadata om = null;
ContentsType ct = null;
// we add the static sections if the are included in the requested sections
if (sections.containsSection("ServiceProvider") || sections.containsSection("All")) {
sp = getServiceProvider();
}
if (sections.containsSection("ServiceIdentification") || sections.containsSection("All")) {
si = getServiceIdentification();
}
if (sections.containsSection("OperationsMetadata") || sections.containsSection("All")) {
om = getOperationsMetadata();
}
// if the user does not request the contents section we can return the result.
if (sections.containsSection("Contents") || sections.containsSection("All")) {
ct = contents;
}
return new CapabilitiesType(si, sp, om, "2.0.1", getUpdateSequence(), ct, getServiceMetadata());
}
use of org.geotoolkit.ows.xml.v100.ServiceIdentification in project geotoolkit by Geomatys.
the class Capabilities method applySections.
@Override
public AbstractCapabilitiesCore applySections(final Sections sections) {
// we prepare the different parts response document
ServiceIdentification si = null;
ServiceProvider sp = null;
OperationsMetadata om = null;
FilterCapabilities fc = null;
Contents cont = null;
// we enter the information for service identification.
if (sections.containsSection("ServiceIdentification") || sections.containsSection("All")) {
si = getServiceIdentification();
}
// we enter the information for service provider.
if (sections.containsSection("ServiceProvider") || sections.containsSection("All")) {
sp = getServiceProvider();
}
// we enter the operation Metadata
if (sections.containsSection("OperationsMetadata") || sections.containsSection("All")) {
om = getOperationsMetadata();
}
// we enter the information filter capablities.
if (sections.containsSection("Filter_Capabilities") || sections.containsSection("All")) {
fc = filterCapabilities;
}
if (sections.containsSection("Contents") || sections.containsSection("All")) {
cont = contents;
}
// we build and normalize the document
return new Capabilities(si, sp, om, "1.0.0", getUpdateSequence(), fc, cont);
}
use of org.geotoolkit.ows.xml.v100.ServiceIdentification in project geotoolkit by Geomatys.
the class CapabilitiesType method applySections.
@Override
public AbstractCapabilitiesCore applySections(final Sections sections) {
// we prepare the different parts response document
ServiceIdentification si = null;
ServiceProvider sp = null;
OperationsMetadata om = null;
FilterCapabilities fc = null;
ContentsType cont = null;
// we enter the information for service identification.
if (sections.containsSection("ServiceIdentification") || sections.containsSection("All")) {
si = getServiceIdentification();
}
// we enter the information for service provider.
if (sections.containsSection("ServiceProvider") || sections.containsSection("All")) {
sp = getServiceProvider();
}
// we enter the operation Metadata
if (sections.containsSection("OperationsMetadata") || sections.containsSection("All")) {
om = getOperationsMetadata();
}
// we enter the information filter capablities.
if (sections.containsSection("Filter_Capabilities") || sections.containsSection("All")) {
fc = filterCapabilities;
}
if (sections.containsSection("Contents") || sections.containsSection("All")) {
if (contents != null) {
cont = contents.contents;
}
}
// we build and normalize the document
return new CapabilitiesType(si, sp, om, "2.0.0", getUpdateSequence(), fc, cont, extension);
}
use of org.geotoolkit.ows.xml.v100.ServiceIdentification in project geotoolkit by Geomatys.
the class CapabilitiesType method applySections.
@Override
public CapabilitiesType applySections(final Sections sections) {
ServiceIdentification si = null;
ServiceProvider sp = null;
OperationsMetadata om = null;
// we enter the information for service identification.
if (sections.containsSection("ServiceIdentification") || sections.containsSection("All")) {
si = getServiceIdentification();
}
// we enter the information for service provider.
if (sections.containsSection("ServiceProvider") || sections.containsSection("All")) {
sp = getServiceProvider();
}
// we enter the operation Metadata
if (sections.containsSection("OperationsMetadata") || sections.containsSection("All")) {
om = getOperationsMetadata();
}
return new CapabilitiesType(si, sp, om, "2.0.2", getUpdateSequence());
}
use of org.geotoolkit.ows.xml.v100.ServiceIdentification in project geotoolkit by Geomatys.
the class Capabilities method applySections.
@Override
public AbstractCapabilitiesBase applySections(final Sections sections) {
ServiceIdentification si = null;
ServiceProvider sp = null;
OperationsMetadata om = null;
ContentsType cont = null;
List<Themes> th = null;
if (sections.containsSection("ServiceIdentification") || sections.containsSection("All")) {
si = getServiceIdentification();
}
if (sections.containsSection("ServiceProvider") || sections.containsSection("All")) {
sp = getServiceProvider();
}
if (sections.containsSection("OperationsMetadata") || sections.containsSection("All")) {
om = getOperationsMetadata();
}
if (sections.containsSection("Contents") || sections.containsSection("All")) {
cont = contents;
}
if (sections.containsSection("Themes") || sections.containsSection("All")) {
th = themes;
}
return new Capabilities(si, sp, om, "1.0.0", getUpdateSequence(), cont, th);
}
Aggregations