Class TLcdDefaultCoverageOffering

java.lang.Object
com.luciad.ogc.wcs.model.TLcdDefaultCoverageOffering
All Implemented Interfaces:
ILcdCoverageOffering

public class TLcdDefaultCoverageOffering extends Object implements ILcdCoverageOffering
The default implementation of ILcdCoverageOffering.
Since:
2017.0
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: ILcdCoverageOffering
      Returns a unique ID for the coverage offering.
      Specified by:
      getName in interface ILcdCoverageOffering
    • setName

      public void setName(String aName)
    • getSource

      public String getSource()
      Description copied from interface: ILcdCoverageOffering
      Returns the source.
      Specified by:
      getSource in interface ILcdCoverageOffering
    • setSource

      public void setSource(String aSource)
    • getLabel

      public String getLabel()
      Description copied from interface: ILcdCoverageOffering
      Returns a label for the coverage offering, which can be displayed to the user instead of the unique ID.
      Specified by:
      getLabel in interface ILcdCoverageOffering
    • setLabel

      public void setLabel(String aLabel)
    • getDescription

      public String getDescription()
      Description copied from interface: ILcdCoverageOffering
      Returns a brief description of the coverage offering.
      Specified by:
      getDescription in interface ILcdCoverageOffering
    • setDescription

      public void setDescription(String aDescription)
    • getMetadataLink

      public String getMetadataLink()
      Description copied from interface: ILcdCoverageOffering
      Returns a link to the metadata associated with the coverage offering.
      Specified by:
      getMetadataLink in interface ILcdCoverageOffering
    • getKeywordCount

      public int getKeywordCount()
      Description copied from interface: ILcdCoverageOffering
      Returns the number of keywords associated with the coverage offering.
      Specified by:
      getKeywordCount in interface ILcdCoverageOffering
    • getKeyword

      public String getKeyword(int aIndex) throws IndexOutOfBoundsException
      Description copied from interface: ILcdCoverageOffering
      Returns the keyword at the given index.
      Specified by:
      getKeyword in interface ILcdCoverageOffering
      Throws:
      IndexOutOfBoundsException
    • setMetadataLink

      public void setMetadataLink(String aMetadataLink)
    • getKeywords

      public List<String> getKeywords()
    • setKeywords

      public void setKeywords(List<String> aKeywords)
    • getWGS84Bounds

      public ILcdBounds getWGS84Bounds()
      Description copied from interface: ILcdCoverageOffering
      Returns the WGS84 bounding box of the coverage data.
      Specified by:
      getWGS84Bounds in interface ILcdCoverageOffering
    • setWGS84Bounds

      public void setWGS84Bounds(ILcdBounds aWGS84Bounds)
    • getCoverageOfferingDetail

      public ILcdCoverageOfferingDetail getCoverageOfferingDetail()
      Description copied from interface: ILcdCoverageOffering
      Returns an ILcdCoverageOfferingDetail containing additional information about the coverage offering.
      Specified by:
      getCoverageOfferingDetail in interface ILcdCoverageOffering
    • setCoverageOfferingDetail

      public void setCoverageOfferingDetail(ILcdCoverageOfferingDetail aCoverageOfferingDetail)
    • setExpiryDate

      public void setExpiryDate(long aDate)
      Sets an expiry date for this coverage. The date is expressed by the number of milliseconds since January 1, 1970, 00:00:00 GMT. When set, the date is used to fill in the Expires HTTP header on GetCoverage and DescribeCoverage responses.
      Parameters:
      aDate - an expiry date for this coverage
      See Also:
    • getExpiryDate

      public Long getExpiryDate()
      Returns the expiry date of this coverage. By default, null is returned.
      Specified by:
      getExpiryDate in interface ILcdCoverageOffering
      Returns:
      the expiry date associated with this coverage
      See Also:
    • setModificationDate

      public void setModificationDate(Long aDate)
      Sets a modification date for this coverage. The date is expressed by the number of milliseconds since January 1, 1970, 00:00:00 GMT. When set, the date is used to fill in the Last-Modified HTTP header on GetCoverage and DescribeCoverage responses.
      Parameters:
      aDate - a modification date for this coverage
      See Also:
    • getModificationDate

      public Long getModificationDate()
      Returns the modification date of this coverage. By default, null is returned.
      Specified by:
      getModificationDate in interface ILcdCoverageOffering
      Returns:
      the modification date associated with this coverage.
      See Also:
    • getUpdateSequence

      public String getUpdateSequence()
      Description copied from interface: ILcdCoverageOffering

      Returns the update sequence value associated with this coverage object. This update sequence identifies the state of the coverage, including all dependencies such as data source, bounds etc...

      The update sequence should comply with a number of conditions:

      • The sequence number should be different from all previous update sequences for this WCS coverage (if the WCS coverage has changed).
      • If the WCS coverage is different (i.e. different data/style/...), the sequence number should be different as well. Failing to do so will cause malfunctions in combination with caching.
      • If the WCS coverage doesn't change, the sequence number should also remain the same. Failing to do so lowers the effect of caching, and will result in worse performance.
      • The sequence number should be unique across sessions. Failing to do so may cause malfunctions in combination with caching. An easy mistake to make would for example be to use a counter that is reset when the server is restarted.

      By default, this method always returns "0". This means that the default implementation assumes that WCS coverages never change.

      One way to generate update sequences would be to use a (persistent) counter that gets incremented on every change. Another way would be to use System.currentTimeMillis() from a correct clock.

      Specified by:
      getUpdateSequence in interface ILcdCoverageOffering
      Returns:
      the update sequence value associated with this coverage object, never null.
    • setUpdateSequence

      public void setUpdateSequence(String aUpdateSequence)

      Sets the update sequence value associated with this capabilities object. See getUpdateSequence() for more information.

      Parameters:
      aUpdateSequence - the new update sequence.
      Since:
      2020.1