-
public final class HTMLMetaTagsThis class holds the information about HTML "meta" tags extracted from a page. Some special tags have convenience methods for easy checking.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleannoIndexprivate BooleannoFollowprivate BooleannoCacheprivate URLbaseHrefprivate Booleanrefreshprivate IntegerrefreshTimeprivate URLrefreshHrefprivate final MultiMetadatageneralTagsprivate final PropertieshttpEquivTags
-
Constructor Summary
Constructors Constructor Description HTMLMetaTags(Node root, URL currURL)
-
Method Summary
Modifier and Type Method Description final BooleangetNoIndex()A convenience method. final UnitsetNoIndex(Boolean noIndex)A convenience method. final BooleangetNoFollow()A convenience method. final UnitsetNoFollow(Boolean noFollow)A convenience method. final BooleangetNoCache()A convenience method. final UnitsetNoCache(Boolean noCache)A convenience method. final URLgetBaseHref()Sets the baseHref.final UnitsetBaseHref(URL baseHref)Sets the baseHref.final BooleangetRefresh()Sets refreshto the supplied value.final UnitsetRefresh(Boolean refresh)Sets refreshto the supplied value.final IntegergetRefreshTime()Sets the refreshTime.final UnitsetRefreshTime(Integer refreshTime)Sets the refreshTime.final URLgetRefreshHref()Sets the refreshHref.final UnitsetRefreshHref(URL refreshHref)Sets the refreshHref.final MultiMetadatagetGeneralTags()Returns all collected values of the general meta tags. final PropertiesgetHttpEquivTags()Returns all collected values of the "http-equiv" meta tags. final Unitreset()Sets all boolean values to false.final UnitsetNoFollow()Sets noFollowtotrue.final UnitsetNoIndex()Sets noIndextotrue.final UnitsetNoCache()Sets noCachetotrue.final Unitwalk(Node node)Utility class with indicators for the robots directives "noindex" and "nofollow", and HTTP-EQUIV/no-cache StringtoString()-
-
Method Detail
-
getNoIndex
final Boolean getNoIndex()
A convenience method. Returns the current value of
noIndex.
-
setNoIndex
final Unit setNoIndex(Boolean noIndex)
A convenience method. Returns the current value of
noIndex.
-
getNoFollow
final Boolean getNoFollow()
A convenience method. Returns the current value of
noFollow.
-
setNoFollow
final Unit setNoFollow(Boolean noFollow)
A convenience method. Returns the current value of
noFollow.
-
getNoCache
final Boolean getNoCache()
A convenience method. Returns the current value of
noCache.
-
setNoCache
final Unit setNoCache(Boolean noCache)
A convenience method. Returns the current value of
noCache.
-
getBaseHref
final URL getBaseHref()
Sets the
baseHref.
-
setBaseHref
final Unit setBaseHref(URL baseHref)
Sets the
baseHref.
-
getRefresh
final Boolean getRefresh()
Sets
refreshto the supplied value.
-
setRefresh
final Unit setRefresh(Boolean refresh)
Sets
refreshto the supplied value.
-
getRefreshTime
final Integer getRefreshTime()
Sets the
refreshTime.
-
setRefreshTime
final Unit setRefreshTime(Integer refreshTime)
Sets the
refreshTime.
-
getRefreshHref
final URL getRefreshHref()
Sets the
refreshHref.
-
setRefreshHref
final Unit setRefreshHref(URL refreshHref)
Sets the
refreshHref.
-
getGeneralTags
final MultiMetadata getGeneralTags()
Returns all collected values of the general meta tags. Property names are tag names, property values are "content" values.
-
getHttpEquivTags
final Properties getHttpEquivTags()
Returns all collected values of the "http-equiv" meta tags. Property names are tag names, property values are "content" values.
-
setNoFollow
final Unit setNoFollow()
Sets
noFollowtotrue.
-
setNoIndex
final Unit setNoIndex()
Sets
noIndextotrue.
-
setNoCache
final Unit setNoCache()
Sets
noCachetotrue.
-
walk
final Unit walk(Node node)
Utility class with indicators for the robots directives "noindex" and "nofollow", and HTTP-EQUIV/no-cache
-
-
-
-