Class LinkState
- java.lang.Object
-
- org.xwiki.rendering.transformation.linkchecker.LinkState
-
public class LinkState extends Object
Represents a Link State, ie the HTTP response code when the link was checked, the time when the link was last checked and context data.- Since:
- 3.3M1
- Version:
- $Id: 74532a1e08cd47b3944308c508a7f4f0a42591fc $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Map<String,Object>
getContextData()
long
getLastCheckedTime()
int
getResponseCode()
int
hashCode()
-
-
-
Constructor Detail
-
LinkState
public LinkState(int responseCode, long lastCheckedTime, Map<String,Object> contextData)
- Parameters:
responseCode
- seegetResponseCode()
lastCheckedTime
- seegetLastCheckedTime()
contextData
- seegetContextData()
-
LinkState
public LinkState(int responseCode, long lastCheckedTime)
- Parameters:
responseCode
- seegetResponseCode()
lastCheckedTime
- seegetLastCheckedTime()
-
-
Method Detail
-
getLastCheckedTime
public long getLastCheckedTime()
- Returns:
- the time when the link was last checked
-
getResponseCode
public int getResponseCode()
- Returns:
- the HTTP response code when the link was checked
-
getContextData
public Map<String,Object> getContextData()
- Returns:
- the context data associated with the content reference. What gets put in the Context Data Map depends
purely on implementations of
LinkContextDataProvider
-
-