Class TLcdWMSURL

java.lang.Object
com.luciad.wms.server.model.TLcdWMSURL

public final class TLcdWMSURL extends Object
General representation of an URL-based feature that is used in the WMS capabilities. Except for the online resource, the applicable fields (name, type, format, width, height) of this class depend on the actual WMS feature that is represented.

In the current implementation, it is used to model the following WMS features:

  • MetadataURL (see ALcdWMSLayer). The applicable fields are: online resource, format and type.
  • DataURL (see ALcdWMSLayer). The applicable fields are: online resource and format.
  • FeatureListURL (see ALcdWMSLayer). The applicable fields are: online resource and format.
  • LegendURL (see ALcdWMSLayerStyle). The applicable fields are: online resource, format, width and height.
  • StyleSheetURL (see ALcdWMSLayerStyle). The applicable fields are: online resource and format.
  • StyleURL (see ALcdWMSLayerStyle). The applicable fields are: online resource and format.
  • Constructor Details

    • TLcdWMSURL

      public TLcdWMSURL(TLcdOWSOnlineResource aOnlineResource, String aName, String aType, String aFormat)
      Creates a new TLcdWMSURL with the given parameters.
      Parameters:
      aOnlineResource - The online resource of this URL. This argument is mandatory and must not be null.
      aName - An optional name. If not applicable, null must be used.
      aType - An optional type. If not applicable, null must be used.
      aFormat - An optional format. If not applicable, null must be used.
    • TLcdWMSURL

      public TLcdWMSURL(TLcdOWSOnlineResource aOnlineResource, String aName, String aType, String aFormat, int aWidth, int aHeight)
      Creates a new TLcdWMSURL with the given parameters.
      Parameters:
      aOnlineResource - The online resource of this URL. This argument is mandatory and must not be null.
      aName - An optional name. If not applicable, null must be used.
      aType - An optional type. If not applicable, null must be used.
      aFormat - An optional format. If not applicable, null must be used.
      aWidth - An optional width. If not applicable, -1 must be used.
      aHeight - An optional height. If not applicable, -1 must be used.
  • Method Details

    • getOnlineResource

      public TLcdOWSOnlineResource getOnlineResource()
      Returns the online resource (required to be not null).
      Returns:
      the online resource (required to be not null).
    • getName

      public String getName()
      Returns the name.
      Returns:
      the name or null if not defined or applicable.
    • getType

      public String getType()
      Returns the type, standard or specification used by the data source that is referenced by the online resource retrieved through getOnlineResource().
      Returns:
      the type or null if not defined or applicable.
    • getFormat

      public String getFormat()
      Returns the format of the data source that is referenced by the online resource returned by getOnlineResource().
      Returns:
      the format or null if not defined or applicable.
    • getWidth

      public int getWidth()
      Returns the width of the graphic that is referenced by the online resource returned by getOnlineResource().
      Returns:
      the width or -1 if not defined or applicable.
    • getHeight

      public int getHeight()
      Returns the height of the graphic that is referenced by the online resource returned by getOnlineResource()..
      Returns:
      the height or -1 if not defined or applicable.