Package com.ftpix.webwatcher.interfaces
Interface WebSite
-
- All Known Implementing Classes:
DefaultWebSite
public interface WebSite
-
-
Method Summary
Modifier and Type Method Description StringgetCssSelector()Specifies a css selector to check against.java.time.LocalDateTimegetLastCheck()When the content was checked lastStringgetLastContentHash()Gets the hash of the content the last time it was checkedStringgetUrl()THe URL of the website to checkvoidsetCssSelector(String cssSelector)voidsetLastCheck(java.time.LocalDateTime lastCheck)voidsetLastContentHash(String hash)voidsetUrl(String url)
-
-
-
Method Detail
-
getUrl
String getUrl()
THe URL of the website to check- Returns:
- the url of the website
-
getLastCheck
java.time.LocalDateTime getLastCheck()
When the content was checked last- Returns:
- the date
-
getLastContentHash
String getLastContentHash()
Gets the hash of the content the last time it was checked- Returns:
- the last hash
-
getCssSelector
String getCssSelector()
Specifies a css selector to check against. If this is set it will ignoreWebWatcher.bodyOnlyparameter- Returns:
- the css selector
-
setUrl
void setUrl(String url)
-
setLastCheck
void setLastCheck(java.time.LocalDateTime lastCheck)
-
setLastContentHash
void setLastContentHash(String hash)
-
setCssSelector
void setCssSelector(String cssSelector)
-
-