Class DefaultUrlSource

java.lang.Object
ch.grengine.source.BaseSource
ch.grengine.source.DefaultUrlSource
All Implemented Interfaces:
Source, UrlSource

public class DefaultUrlSource extends BaseSource implements UrlSource
URL-based script source with content considered static, default implementation of the UrlSource interface.

The ID is the URL as a string.

The method BaseSource.getLastModified() always returns 0.

Since:
1.0
Author:
Alain Stalder, Made in Switzerland.
  • Constructor Details

    • DefaultUrlSource

      public DefaultUrlSource(URL url)
      constructor from URL.
      Parameters:
      url - URL
      Throws:
      NullPointerException - if URL is null
      Since:
      1.0
  • Method Details

    • getUrl

      public URL getUrl()
      Description copied from interface: UrlSource
      gets the script URL.
      Specified by:
      getUrl in interface UrlSource
      Returns:
      script URL