Package com.ftpix.webwatcher.model
Class DefaultWebSite
- java.lang.Object
-
- com.ftpix.webwatcher.model.DefaultWebSite
-
-
Constructor Summary
Constructors Constructor Description DefaultWebSite(String url)
-
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 lastContentHash)
void
setUrl(String url)
-
-
-
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 ignoreWebWatcher.bodyOnly
parameter- Specified by:
getCssSelector
in interfaceWebSite
- Returns:
- the css selector
-
setCssSelector
public void setCssSelector(String cssSelector)
- Specified by:
setCssSelector
in interfaceWebSite
-
getUrl
public String getUrl()
Description copied from interface:WebSite
THe URL of the website to check
-
getLastCheck
public java.time.LocalDateTime getLastCheck()
Description copied from interface:WebSite
When the content was checked last- Specified by:
getLastCheck
in interfaceWebSite
- 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 interfaceWebSite
- Returns:
- the last hash
-
setLastContentHash
public void setLastContentHash(String lastContentHash)
- Specified by:
setLastContentHash
in interfaceWebSite
-
setLastCheck
public void setLastCheck(java.time.LocalDateTime lastCheck)
- Specified by:
setLastCheck
in interfaceWebSite
-
-