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 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 lastContentHash)voidsetUrl(String url)
-
-
-
Constructor Detail
-
DefaultWebSite
public DefaultWebSite(String url)
-
-
Method Detail
-
getCssSelector
public String getCssSelector()
Description copied from interface:WebSiteSpecifies a css selector to check against. If this is set it will ignoreWebWatcher.bodyOnlyparameter- Specified by:
getCssSelectorin interfaceWebSite- Returns:
- the css selector
-
setCssSelector
public void setCssSelector(String cssSelector)
- Specified by:
setCssSelectorin interfaceWebSite
-
getUrl
public String getUrl()
Description copied from interface:WebSiteTHe URL of the website to check
-
getLastCheck
public java.time.LocalDateTime getLastCheck()
Description copied from interface:WebSiteWhen the content was checked last- Specified by:
getLastCheckin interfaceWebSite- Returns:
- the date
-
getLastContentHash
public String getLastContentHash()
Description copied from interface:WebSiteGets the hash of the content the last time it was checked- Specified by:
getLastContentHashin interfaceWebSite- Returns:
- the last hash
-
setLastContentHash
public void setLastContentHash(String lastContentHash)
- Specified by:
setLastContentHashin interfaceWebSite
-
setLastCheck
public void setLastCheck(java.time.LocalDateTime lastCheck)
- Specified by:
setLastCheckin interfaceWebSite
-
-