|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.nutch.parse.HTMLMetaTags
public class HTMLMetaTags
This class holds the information about HTML "meta" tags extracted from a page. Some special tags have convenience methods for easy checking.
Constructor Summary | |
---|---|
HTMLMetaTags()
|
Method Summary | |
---|---|
URL |
getBaseHref()
A convenience method. |
Properties |
getGeneralTags()
Returns all collected values of the general meta tags. |
Properties |
getHttpEquivTags()
Returns all collected values of the "http-equiv" meta tags. |
boolean |
getNoCache()
A convenience method. |
boolean |
getNoFollow()
A convenience method. |
boolean |
getNoIndex()
A convenience method. |
boolean |
getRefresh()
A convenience method. |
URL |
getRefreshHref()
A convenience method. |
int |
getRefreshTime()
A convenience method. |
void |
reset()
Sets all boolean values to false . |
void |
setBaseHref(URL baseHref)
Sets the baseHref . |
void |
setNoCache()
Sets noCache to true . |
void |
setNoFollow()
Sets noFollow to true . |
void |
setNoIndex()
Sets noIndex to true . |
void |
setRefresh(boolean refresh)
Sets refresh to the supplied value. |
void |
setRefreshHref(URL refreshHref)
Sets the refreshHref . |
void |
setRefreshTime(int refreshTime)
Sets the refreshTime . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HTMLMetaTags()
Method Detail |
---|
public void reset()
false
. Clears all other tags.
public void setNoFollow()
noFollow
to true
.
public void setNoIndex()
noIndex
to true
.
public void setNoCache()
noCache
to true
.
public void setRefresh(boolean refresh)
refresh
to the supplied value.
public void setBaseHref(URL baseHref)
baseHref
.
public void setRefreshHref(URL refreshHref)
refreshHref
.
public void setRefreshTime(int refreshTime)
refreshTime
.
public boolean getNoIndex()
noIndex
.
public boolean getNoFollow()
noFollow
.
public boolean getNoCache()
noCache
.
public boolean getRefresh()
refresh
.
public URL getBaseHref()
baseHref
, if set, or
null
otherwise.
public URL getRefreshHref()
refreshHref
, if set, or
null
otherwise. The value may be invalid if
getRefresh()
returns false
.
public int getRefreshTime()
refreshTime
.
The value may be invalid if getRefresh()
returns
false
.
public Properties getGeneralTags()
public Properties getHttpEquivTags()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |