public class HTMLMetaTags
extends java.lang.Object
| Constructor and Description |
|---|
HTMLMetaTags() |
| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
getBaseHref()
A convenience method.
|
Metadata |
getGeneralTags()
Returns all collected values of the general meta tags.
|
java.util.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.
|
java.net.URL |
getRefreshHref()
A convenience method.
|
int |
getRefreshTime()
A convenience method.
|
void |
reset()
Sets all boolean values to
false. |
void |
setBaseHref(java.net.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(java.net.URL refreshHref)
Sets the
refreshHref. |
void |
setRefreshTime(int refreshTime)
Sets the
refreshTime. |
java.lang.String |
toString() |
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(java.net.URL baseHref)
baseHref.public void setRefreshHref(java.net.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 java.net.URL getBaseHref()
baseHref, if set, or
null otherwise.public java.net.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 java.util.Properties getHttpEquivTags()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 The Apache Software Foundation