com.supermap.services.wms

Interface WMSXMLEncoder

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String encode(OGCException[] exceptions)
      Convert the OGCException object to XML document string format of exception information.
      java.lang.String encode(WMSCapabilities capabilities)
      Construct the WMSCapabilities object to Capabilities XML document string format of WMS service.
      java.lang.String encode(WMSFeatureInfo[] featureInfos, java.lang.String format)
      Construct the WMSFeatureInfo object to XML document string format of GetFeatureInfo operation.
      java.lang.String getCapabilitiesDTDOrXSD()
      Get the DTD or XSD document address of the Capabilities XML document.
      java.lang.String getExceptionDTDOrXSD()
      Get the DTD or XSD document address of the exception information XML document.
      java.lang.String getFeatureDTDOrXSD()
      Get DTD or XSD document address in the XML document of the GetFeatureInfo operation response.
      java.lang.String getVersion()
      Gets the WMS service version.
      void setCapabilitiesDTDOrXSD(java.lang.String url)
      Set the DTD or XSD document of the Capabilities XML document.
      void setExceptionDTDOrXSD(java.lang.String url)
      Set the DTD or XSD document address of the exception XML document.
      void setFeatureDTDOrXSD(java.lang.String url)
      Set DTD or XSD document address in the XML document of the GetFeatureInfo operation response.
      void setProviderUrl(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 the WMSCapabilities object 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 the WMSFeatureInfo object 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 the OGCException object 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.