Class ALcdWMSDescribeLayerRequestEncoder

java.lang.Object
com.luciad.wms.server.ALcdWMSDescribeLayerRequestEncoder
All Implemented Interfaces:
ILcdWMSDescribeLayerRequestEncoder

public abstract class ALcdWMSDescribeLayerRequestEncoder extends Object implements ILcdWMSDescribeLayerRequestEncoder
Extension of ILcdWMSDescribeLayerRequestEncoder that is capable of sending a DescribeLayer response that uses the default content type application/vnd.ogc.wms_xml defined for WMS 1.1.0 and later, and that complies to the WMS_DescribeLayerResponse DTD defined by the OGC 02-70 SLD specification.

Implementations of this class must implement and may implement
  • Constructor Details

    • ALcdWMSDescribeLayerRequestEncoder

      public ALcdWMSDescribeLayerRequestEncoder()
  • Method Details

    • getContentType

      public final String getContentType()
      Description copied from interface: ILcdWMSDescribeLayerRequestEncoder
      Returns the content MIME type of the encoder.
      Specified by:
      getContentType in interface ILcdWMSDescribeLayerRequestEncoder
      Returns:
      the MIME-type as String.
    • encode

      public final void encode(ALcdWMSLayer[] aWMSLayers, OutputStream aOutputStream, TLcdWMSRequestContext aRequestContext) throws IOException
      Description copied from interface: ILcdWMSDescribeLayerRequestEncoder
      Encodes the describe layer response a given layer and sends it to the given OutputStream.
      Specified by:
      encode in interface ILcdWMSDescribeLayerRequestEncoder
      Parameters:
      aWMSLayers - the named Web Map Server layers for which a description is needed.
      aOutputStream - the OutputStream to write the output to.
      aRequestContext - a container for the original request and other related request parameters.
      Throws:
      IOException - for any I/O Exceptions.
    • getWFS

      protected String getWFS(ALcdWMSLayer aLayer, TLcdWMSRequestContext aRequestContext)
      Returns the URL prefix for the WFS containing the feature data.

      Note that this method is similar to getOWSURL(com.luciad.wms.server.model.ALcdWMSLayer, TLcdWMSRequestContext), as it provides the URL of the service containing the feature data; it is only retained for greater compatibility with the WFS specification.

      As this is optional, null is returned by default/.

      Parameters:
      aLayer - a named layer
      aRequestContext - a container for the original request and other related request parameter
      Returns:
      the URL prefix for the WFS containing the feature data, or null if not applicable.
    • getOWSType

      protected String getOWSType(ALcdWMSLayer aLayer, TLcdWMSRequestContext aRequestContext)
      Returns the OWS type of the service containing the feature data. If defined, this must be either WFS or WCS.

      As this is optional, null is returned by default/.

      Parameters:
      aLayer - a named layer
      aRequestContext - a container for the original request and other related request parameters
      Returns:
      the OWS type of the service, or null if not applicable.
    • getOWSURL

      protected String getOWSURL(ALcdWMSLayer aLayer, TLcdWMSRequestContext aRequestContext)
      Returns the OWS base URL of the service containing the feature data.

      As this is optional, null is returned by default/.

      Parameters:
      aLayer - a named layer.
      aRequestContext - a container for the original request and other related request parameters
      Returns:
      the OWS base URL of the service, or null if not applicable.
    • getQueries

      protected abstract String[] getQueries(ALcdWMSLayer aLayer, TLcdWMSRequestContext aRequestContext)
      Returns an array of one or more feature/coverage-types for the given named layer. If the layer is not feature based, null must be returned.
      Parameters:
      aLayer - a named layer
      aRequestContext - a container for the original request and other related request parameters
      Returns:
      an array of one or more feature/coverage-types for the given named layer, or null otherwise.