public class HttpCrawlData extends BaseCrawlData
Constructor and Description |
---|
HttpCrawlData()
Constructor.
|
HttpCrawlData(ICrawlData crawlData)
Constructor
|
HttpCrawlData(String url,
int depth)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
getDepth()
Gets the URL depth.
|
String |
getOriginalReference() |
String[] |
getRedirectTrail()
Gets the trail of URLs that were redirected up to this one.
|
String[] |
getReferencedUrls()
Gets URLs referenced by this one.
|
String |
getReferrerLinkTag() |
String |
getReferrerLinkText() |
String |
getReferrerLinkTitle() |
String |
getReferrerReference() |
String |
getSitemapChangeFreq()
Gets the sitemap change frequency.
|
Long |
getSitemapLastMod()
Gets the sitemap last modified date in milliseconds (EPOCH date).
|
Float |
getSitemapPriority()
Gets the sitemap priority.
|
String |
getUrlRoot()
Gets the URL root (protocol + domain, e.g.
|
int |
hashCode() |
void |
setDepth(int depth)
Sets the URL depth.
|
void |
setOriginalReference(String originalReference) |
void |
setRedirectTrail(String... redirectTrail)
Sets the trail of URLs that were redirected up to this one.
|
void |
setReference(String url) |
void |
setReferencedUrls(String... referencedUrls)
Sets URLs referenced by this one.
|
void |
setReferrerLinkTag(String referrerLinkTag) |
void |
setReferrerLinkText(String referrerLinkText) |
void |
setReferrerLinkTitle(String referrerLinkTitle) |
void |
setReferrerReference(String referrerReference) |
void |
setSitemapChangeFreq(String sitemapChangeFreq)
Sets the sitemap change frequency.
|
void |
setSitemapLastMod(Long sitemapLastMod)
Sets the sitemap last modified date in milliseconds (EPOCH date).
|
void |
setSitemapPriority(Float sitemapPriority)
Sets the sitemap priority.
|
String |
toString() |
clone, getContentChecksum, getContentType, getCrawlDate, getMetaChecksum, getParentRootReference, getReference, getState, isRootParentReference, setContentChecksum, setContentType, setCrawlDate, setMetaChecksum, setParentRootReference, setRootParentReference, setState
public HttpCrawlData()
public HttpCrawlData(ICrawlData crawlData)
crawlData
- initialized this instance this datapublic HttpCrawlData(String url, int depth)
url
- URL being crawleddepth
- URL depthpublic String getOriginalReference()
public void setOriginalReference(String originalReference)
public int getDepth()
public Long getSitemapLastMod()
public void setSitemapLastMod(Long sitemapLastMod)
sitemapLastMod
- date as longpublic String getSitemapChangeFreq()
public void setSitemapChangeFreq(String sitemapChangeFreq)
sitemapChangeFreq
- sitemap change frequencypublic Float getSitemapPriority()
public void setSitemapPriority(Float sitemapPriority)
sitemapPriority
- sitemap prioritypublic final void setDepth(int depth)
depth
- URL depthpublic String getReferrerLinkText()
public void setReferrerLinkText(String referrerLinkText)
public String getReferrerReference()
public void setReferrerReference(String referrerReference)
public String getReferrerLinkTag()
public void setReferrerLinkTag(String referrerLinkTag)
public String getReferrerLinkTitle()
public void setReferrerLinkTitle(String referrerLinkTitle)
public final void setReference(String url)
setReference
in class BaseCrawlData
public String getUrlRoot()
public String[] getReferencedUrls()
public void setReferencedUrls(String... referencedUrls)
referencedUrls
- referenced URLspublic String[] getRedirectTrail()
public void setRedirectTrail(String... redirectTrail)
redirectTrail
- URL redirection trail to this onepublic boolean equals(Object other)
equals
in class BaseCrawlData
public int hashCode()
hashCode
in class BaseCrawlData
public String toString()
toString
in class BaseCrawlData
Copyright © 2009–2021 Norconex Inc.. All rights reserved.