com.supermap.services.wms
Interface WMSXMLEncoder
-
- All Known Implementing Classes:
- AbstractWMSXMLEncoder, WMSXMLEncoder111, WMSXMLEncoder130
public interface WMSXMLEncoderWMS XML document encoder.
Convert the relevent WMS objects of SuperMap iServer to the XML document of WMS service based on OGC standard.
-
-
Method Summary
Methods Modifier and Type Method and Description java.lang.Stringencode(OGCException[] exceptions)Convert theOGCExceptionobject to XML document string format of exception information.java.lang.Stringencode(WMSCapabilities capabilities)Construct theWMSCapabilitiesobject to Capabilities XML document string format of WMS service.java.lang.Stringencode(WMSFeatureInfo[] featureInfos, java.lang.String format)Construct theWMSFeatureInfoobject to XML document string format of GetFeatureInfo operation.java.lang.StringgetCapabilitiesDTDOrXSD()Get the DTD or XSD document address of the Capabilities XML document.java.lang.StringgetExceptionDTDOrXSD()Get the DTD or XSD document address of the exception information XML document.java.lang.StringgetFeatureDTDOrXSD()Get DTD or XSD document address in the XML document of the GetFeatureInfo operation response.java.lang.StringgetVersion()Gets the WMS service version.voidsetCapabilitiesDTDOrXSD(java.lang.String url)Set the DTD or XSD document of the Capabilities XML document.voidsetExceptionDTDOrXSD(java.lang.String url)Set the DTD or XSD document address of the exception XML document.voidsetFeatureDTDOrXSD(java.lang.String url)Set DTD or XSD document address in the XML document of the GetFeatureInfo operation response.voidsetProviderUrl(java.lang.String providerurl)Online resource URL.
-
-
-
Method Detail
-
setProviderUrl
void setProviderUrl(java.lang.String providerurl)
Online resource URL.
The URL is a URL prefix, which is an opaque string, including protocol, host name, port number (optional), path, English mark ("?"), and one or more parameters defined by server (optional), where the parameter uses"&" at the end.
In the XML document of WMS, the field value is recorded in the xlink:href property of the OnlineResource element.
- Parameters:
providerurl- URL of WMS service.
-
encode
java.lang.String encode(WMSCapabilities capabilities)
Construct theWMSCapabilitiesobject to Capabilities XML document string format of WMS service.- Parameters:
capabilities- WMSCapabilities object.- Returns:
- Capabilities XML document string format.
-
encode
java.lang.String encode(WMSFeatureInfo[] featureInfos, java.lang.String format)
Construct theWMSFeatureInfoobject to XML document string format of GetFeatureInfo operation.- Parameters:
featureInfos- WMSFeatureInfo object array.- Returns:
- XML document string format of GetFeatureInfo operation.
-
encode
java.lang.String encode(OGCException[] exceptions)
Convert theOGCExceptionobject to XML document string format of exception information.- Parameters:
exceptions- exception object array.- Returns:
- XML document string format of exception information.
-
getVersion
java.lang.String getVersion()
Gets the WMS service version.- Returns:
- The WMS service version.
-
setCapabilitiesDTDOrXSD
void setCapabilitiesDTDOrXSD(java.lang.String url)
Set the DTD or XSD document of the Capabilities XML document.- Parameters:
url- the DTD or XSD document address.
-
getCapabilitiesDTDOrXSD
java.lang.String getCapabilitiesDTDOrXSD()
Get the DTD or XSD document address of the Capabilities XML document.- Returns:
- the DTD or XSD document address.
-
setExceptionDTDOrXSD
void setExceptionDTDOrXSD(java.lang.String url)
Set the DTD or XSD document address of the exception XML document.- Parameters:
url- the DTD or XSD document address.
-
getExceptionDTDOrXSD
java.lang.String getExceptionDTDOrXSD()
Get the DTD or XSD document address of the exception information XML document.- Returns:
- the DTD or XSD document address.
-
setFeatureDTDOrXSD
void setFeatureDTDOrXSD(java.lang.String url)
Set DTD or XSD document address in the XML document of the GetFeatureInfo operation response.- Parameters:
url- the DTD or XSD document address.
-
getFeatureDTDOrXSD
java.lang.String getFeatureDTDOrXSD()
Get DTD or XSD document address in the XML document of the GetFeatureInfo operation response.- Returns:
- the DTD or XSD document address.
-
-