Package com.luciad.wms.server
Interface ILcdWMSOnlineResourceResolver
public interface ILcdWMSOnlineResourceResolver
Provider for online resources (typically URLs) that are used in some standardized responses defined by the
WMS specification, like a GetCapabilities response or a Service Exception Report response.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier for the capabilities DTD defined for WMS 1.1.1.static final int
Identifier for the capabilities XML Schema defined for WMS 1.3.0.static final int
Identifier for the DataURL element defined for a layer in the capabilities.static final int
Identifier for the FeatureListURL element defined for a layer in the capabilities.static final int
Identifier for the MetadataURL element defined for a layer in the capabilities.static final int
Identifier for the LegendURL element defined for a layer in the capabilities.static final int
Identifier for the StyleURL element defined for a layer in the capabilities.static final int
Identifier for the StylesheetURL element defined for a layer in the capabilities.static final int
Identifier for the OnlineResource element used in the request section of the capabilities.static final int
Identifier for the OnlineResource element defined in the service metadata section of the capabilities.static final int
Identifier for the default DescribeLayer response DTD.static final int
Identifier for the service exception DTD defined for WMS 1.1.1.static final int
Identifier for the service exception XML Schema defined for WMS 1.3.0.static final int
Identifier for the capabilities XML Schema defined for WMS SLD capabilities 1.1.0. -
Method Summary
Modifier and TypeMethodDescriptionresolveOnlineResource
(int aType, TLcdOWSOnlineResource[] aOnlineResources, ALcdWMSLayer aSourceLayer, ALcdWMSLayerStyle aSourceLayerStyle, TLcdWMSRequestContext aWMSRequestContext) Returns the online resource(s) corresponding to the supplied type.
-
Field Details
-
CAPABILITIES_111_DTD
static final int CAPABILITIES_111_DTDIdentifier for the capabilities DTD defined for WMS 1.1.1. Maximum 1 online resource may be returned.- See Also:
-
CAPABILITIES_130_XML_SCHEMA
static final int CAPABILITIES_130_XML_SCHEMAIdentifier for the capabilities XML Schema defined for WMS 1.3.0. Maximum 1 online resource may be returned.- See Also:
-
SERVICE_EXCEPTION_111_DTD
static final int SERVICE_EXCEPTION_111_DTDIdentifier for the service exception DTD defined for WMS 1.1.1. Maximum 1 online resource may be returned.- See Also:
-
SERVICE_EXCEPTION_130_XML_SCHEMA
static final int SERVICE_EXCEPTION_130_XML_SCHEMAIdentifier for the service exception XML Schema defined for WMS 1.3.0. Maximum 1 online resource may be returned.- See Also:
-
DESCRIBE_LAYER_DTD
static final int DESCRIBE_LAYER_DTDIdentifier for the default DescribeLayer response DTD. Maximum 1 online resource may be returned.- See Also:
-
CAPABILITIES_SERVICE_ONLINE_RESOURCE
static final int CAPABILITIES_SERVICE_ONLINE_RESOURCEIdentifier for the OnlineResource element defined in the service metadata section of the capabilities. Maximum 1 online resource may be returned.- See Also:
-
CAPABILITIES_LAYER_METADATA_URL
static final int CAPABILITIES_LAYER_METADATA_URLIdentifier for the MetadataURL element defined for a layer in the capabilities. An unlimited amount of online resources may be returned.- See Also:
-
CAPABILITIES_LAYER_DATA_URL
static final int CAPABILITIES_LAYER_DATA_URLIdentifier for the DataURL element defined for a layer in the capabilities. An unlimited amount of online resources may be returned.- See Also:
-
CAPABILITIES_LAYER_FEATURE_LIST_URL
static final int CAPABILITIES_LAYER_FEATURE_LIST_URLIdentifier for the FeatureListURL element defined for a layer in the capabilities. An unlimited amount of online resources may be returned.- See Also:
-
CAPABILITIES_LAYERSTYLE_LEGEND_URL
static final int CAPABILITIES_LAYERSTYLE_LEGEND_URLIdentifier for the LegendURL element defined for a layer in the capabilities. An unlimited amount of online resources may be returned.- See Also:
-
CAPABILITIES_LAYERSTYLE_STYLESHEET_URL
static final int CAPABILITIES_LAYERSTYLE_STYLESHEET_URLIdentifier for the StylesheetURL element defined for a layer in the capabilities. Maximum 1 online resource may be returned.- See Also:
-
CAPABILITIES_LAYERSTYLE_STYLE_URL
static final int CAPABILITIES_LAYERSTYLE_STYLE_URLIdentifier for the StyleURL element defined for a layer in the capabilities. Maximum 1 online resource may be returned.- See Also:
-
CAPABILITIES_REQUEST_BASE_URL
static final int CAPABILITIES_REQUEST_BASE_URLIdentifier for the OnlineResource element used in the request section of the capabilities. This element defines the base URL of all requests (GetMap GET, GetMap POST, GetFeatureInfo GET, ...). Maximum 1 online resource may be returned.- See Also:
-
SLD_CAPABILITIES_110_XML_SCHEMA
static final int SLD_CAPABILITIES_110_XML_SCHEMAIdentifier for the capabilities XML Schema defined for WMS SLD capabilities 1.1.0. Maximum 1 online resource may be returned.- Since:
- 2022.1
- See Also:
-
-
Method Details
-
resolveOnlineResource
TLcdOWSOnlineResource[] resolveOnlineResource(int aType, TLcdOWSOnlineResource[] aOnlineResources, ALcdWMSLayer aSourceLayer, ALcdWMSLayerStyle aSourceLayerStyle, TLcdWMSRequestContext aWMSRequestContext) Returns the online resource(s) corresponding to the supplied type. Implementations should comply to the following rules:- If no online resources are available,
null
must be returned in all cases. - If there are one or more online resources available:
- The amount of online resources that may be returned depends on the type (see documentation of each type).
- If the supplied online resources array is not
null
, indicating that a static configuration of the online resources is already availabe, implementations should return an online resource array of equal length. If a specific online resource is not available,null
must be used for the corresponding element in the returned array.
- Parameters:
aType
- The type of online resource that is to be resolved. These types are the static int values defined in this interface.aOnlineResources
- The online resources to be resolved, ornull
if no online resource is defined yet for the given type. For example, if the online resource type isCAPABILITIES_LAYER_METADATA_URL
, it contains the online resources that were defined in the capabilities for layeraSourceLayer
(seeALcdWMSLayer#getMetadataURL(int)
. For the DTD and XML Schema online resources, no static configuration is possible, so the online resources array isnull
in that case.aSourceLayer
- The WMS layer that references the online resource, or that contains the layer style that references the online resource, ornull
if not applicable.aSourceLayerStyle
- The WMS layer style that references the online resource, ornull
if not applicable.aWMSRequestContext
- A container for the original request and other related request parameters.- Returns:
- the online resource(s) corresponding to the supplied type.
- If no online resources are available,
-