Package com.ftpix.webwatcher.interfaces
Interface WebSite
-
- All Known Implementing Classes:
DefaultWebSite
public interface WebSite
-
-
Method Summary
Modifier and Type Method Description String
getCssSelector()
Specifies a css selector to check against.java.time.LocalDateTime
getLastCheck()
When the content was checked lastString
getLastContentHash()
Gets the hash of the content the last time it was checkedString
getUrl()
THe URL of the website to checkvoid
setCssSelector(String cssSelector)
void
setLastCheck(java.time.LocalDateTime lastCheck)
void
setLastContentHash(String hash)
void
setUrl(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.bodyOnly
parameter- 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)
-
-