public class HTMLMetaTags extends Object
| Constructor and Description |
|---|
HTMLMetaTags() |
| Modifier and Type | Method and Description |
|---|---|
URL |
getBaseHref()
A convenience method.
|
Metadata |
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 |
setCache()
Sets
noCache to false. |
void |
setFollow()
Sets
noFollow to false. |
void |
setIndex()
Sets
noIndex to false. |
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() |
public void reset()
false. Clears all other tags.public void setNoFollow()
noFollow to true.public void setFollow()
noFollow to false.public void setNoIndex()
noIndex to true.public void setIndex()
noIndex to false.public void setNoCache()
noCache to true.public void setCache()
noCache to false.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 Metadata getGeneralTags()
public Properties getHttpEquivTags()
Copyright © 2021 The Apache Software Foundation