|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.logging.CountedUrl
public abstract class CountedUrl
Represents a visited or referer URL along with a count of how many times that URL has been accessed/referred from.
| Field Summary | |
|---|---|
protected Blog |
blog
|
static int |
NAME_LENGTH_LIMIT
the maximum length of the name |
| Constructor Summary | |
|---|---|
CountedUrl(java.lang.String url)
Creates a new CountedUrl representing the specified url. |
|
CountedUrl(java.lang.String url,
Blog blog)
Creates a new CountedUrl representing the specified url. |
|
| Method Summary | |
|---|---|
void |
addLogEntry(LogEntry logEntry)
Adds a LogEntry. |
boolean |
equals(java.lang.Object o)
Determines whether this object is equal to another. |
int |
getCount()
Gets the count associated with this url. |
java.util.List<LogEntry> |
getLogEntries()
Gets the list of log entries associated with this URL |
java.lang.String |
getName()
Gets a name representation of the url. |
java.lang.String |
getTruncatedName()
Gets a name representation of the url. |
java.lang.String |
getUrl()
Gets the underlying url. |
int |
hashCode()
Implementation of the hashCode() method. |
boolean |
isFileDownload()
|
boolean |
isNewsFeed()
|
boolean |
isPageView()
|
void |
setFileDownload(boolean fileDownload)
|
protected void |
setName(java.lang.String name)
Sets the name. |
void |
setNewsFeed(boolean newsFeed)
|
void |
setPageView(boolean pageView)
|
protected void |
setUrl(java.lang.String url)
Sets the underlying url. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NAME_LENGTH_LIMIT
protected Blog blog
| Constructor Detail |
|---|
public CountedUrl(java.lang.String url)
url - the url as a String
public CountedUrl(java.lang.String url,
Blog blog)
url - the url as a String| Method Detail |
|---|
public java.lang.String getUrl()
protected void setUrl(java.lang.String url)
url - the url as a Stringpublic java.lang.String getName()
protected void setName(java.lang.String name)
name - the name as a Stringpublic java.lang.String getTruncatedName()
public void addLogEntry(LogEntry logEntry)
logEntry - a LogEntry instancepublic java.util.List<LogEntry> getLogEntries()
public int getCount()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to test against
public boolean isNewsFeed()
public void setNewsFeed(boolean newsFeed)
public boolean isPageView()
public void setPageView(boolean pageView)
public boolean isFileDownload()
public void setFileDownload(boolean fileDownload)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||