|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.meshcms.core.PageInfo
This class describes a web page with all the related info (path, title, hits and so on).
| Field Summary | |
static java.lang.String |
ARTICLE_IMAGE_SUFFIX
|
| Constructor Summary | |
PageInfo(WebSite webSite,
Path path)
Creates a page info in the specified WebSite to describe the page
available at the specified path. |
|
| Method Summary | |
void |
addHit()
Adds a hit to the count. |
protected void |
copyStatsFrom(PageInfo other)
|
java.lang.String |
getCharset()
|
java.lang.String |
getExcerpt()
Return an excerpt of the page content |
int |
getHits()
Returns the hit count for the last day. |
int |
getHits(int daysBefore)
Returns the hit count for a previous day. |
java.lang.String[] |
getKeywords()
|
long |
getLastModified()
Returns the time of the last modification made to the page. |
protected int |
getLastStatsIndex()
|
int |
getLevel()
Returns the depth level of the page. |
java.lang.String |
getName()
Returns the file name of the page. |
Path |
getPath()
Returns the path of the page. |
protected int[] |
getStats()
|
java.lang.String |
getTitle()
Returns the title of the page. |
int |
getTotalHits()
Returns the total hit count. |
void |
setCharset(java.lang.String charset)
|
void |
setExcerpt(java.lang.String excerpt)
Set an excerpt of the page content |
void |
setKeywords(java.lang.String[] keywords)
|
void |
setLastModified(long lastModified)
Sets the time of the last modification made to the page. |
void |
setTitle(java.lang.String title)
Sets the title of the page. |
java.lang.String |
toString()
Returns the title of the page (same as getTitle()). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String ARTICLE_IMAGE_SUFFIX
| Constructor Detail |
public PageInfo(WebSite webSite,
Path path)
WebSite to describe the page
available at the specified path.
| Method Detail |
public Path getPath()
public void setTitle(java.lang.String title)
public java.lang.String getTitle()
public java.lang.String getName()
public void addHit()
public int getHits()
public int getHits(int daysBefore)
public int getTotalHits()
protected int[] getStats()
protected int getLastStatsIndex()
protected void copyStatsFrom(PageInfo other)
public int getLevel()
public java.lang.String toString()
getTitle()).
public long getLastModified()
public void setLastModified(long lastModified)
java.io.File.lastModified().
public java.lang.String getCharset()
public void setCharset(java.lang.String charset)
public java.lang.String[] getKeywords()
public void setKeywords(java.lang.String[] keywords)
public java.lang.String getExcerpt()
public void setExcerpt(java.lang.String excerpt)
excerpt - the excerpt to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||