Class DefaultWebSite

    • Constructor Detail

      • DefaultWebSite

        public DefaultWebSite​(String url)
    • Method Detail

      • getCssSelector

        public String getCssSelector()
        Description copied from interface: WebSite
        Specifies a css selector to check against. If this is set it will ignore WebWatcher.bodyOnly parameter
        Specified by:
        getCssSelector in interface WebSite
        Returns:
        the css selector
      • getUrl

        public String getUrl()
        Description copied from interface: WebSite
        THe URL of the website to check
        Specified by:
        getUrl in interface WebSite
        Returns:
        the url of the website
      • getLastCheck

        public java.time.LocalDateTime getLastCheck()
        Description copied from interface: WebSite
        When the content was checked last
        Specified by:
        getLastCheck in interface WebSite
        Returns:
        the date
      • getLastContentHash

        public String getLastContentHash()
        Description copied from interface: WebSite
        Gets the hash of the content the last time it was checked
        Specified by:
        getLastContentHash in interface WebSite
        Returns:
        the last hash
      • setLastCheck

        public void setLastCheck​(java.time.LocalDateTime lastCheck)
        Specified by:
        setLastCheck in interface WebSite