|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.connectivity.framework.crawler.web.parse.html.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 | |
|---|---|
java.net.URL |
getBaseHref()
A convenience method. |
java.util.Properties |
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.util.List<java.lang.String> |
toArrayList()
Returns ArrayList representation of the HTML meta tags for further indexing. |
java.lang.String |
toString()
Returns information about html meta tags. |
| 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.
refresh - booleanpublic void setBaseHref(java.net.URL baseHref)
_baseHref.
baseHref - Base URLpublic void setRefreshHref(java.net.URL refreshHref)
_refreshHref.
refreshHref - URLpublic void setRefreshTime(int refreshTime)
_refreshTime.
refreshTime - int timepublic 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 java.util.Properties getGeneralTags()
public java.util.Properties getHttpEquivTags()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<java.lang.String> toArrayList()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||