org.blojsom.plugin.referer
Class BlogReferer

java.lang.Object
  extended byorg.blojsom.plugin.referer.BlogReferer

public class BlogReferer
extends java.lang.Object

BlogReferer

Version:
$Id: BlogReferer.java,v 1.4 2006/01/04 16:53:12 czarneckid Exp $
Author:
Mark Lussier

Constructor Summary
BlogReferer(java.lang.String flavor, java.lang.String url, java.util.Date date, int count)
          Blog referer constructor
 
Method Summary
 int getCount()
          Get the referer count
 java.lang.String getFlavor()
          Get the flavor for the blog referer
 java.util.Date getLastReferral()
          Get the last date of referral for this URL
 java.lang.String getUrl()
          Get the URL for this blog referer
 void increment()
          Increment the referer count by 1
 boolean isToday()
          Check whether this blog referer has been seen today
 void setCount(int count)
          Set the referer count
 void setFlavor(java.lang.String flavor)
          Set the flavor for this blog referer
 void setLastReferral(java.util.Date lastreferal)
          Set the date of last referral for this blog referer
 void setUrl(java.lang.String url)
          Set the URL for this blog referer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogReferer

public BlogReferer(java.lang.String flavor,
                   java.lang.String url,
                   java.util.Date date,
                   int count)
Blog referer constructor

Parameters:
flavor - Flavor
url - URL
date - Date
count - Hit count
Method Detail

getFlavor

public java.lang.String getFlavor()
Get the flavor for the blog referer

Returns:
Flavor for blog referer

setFlavor

public void setFlavor(java.lang.String flavor)
Set the flavor for this blog referer

Parameters:
flavor - Flavor

getUrl

public java.lang.String getUrl()
Get the URL for this blog referer

Returns:
URL for blog referer

setUrl

public void setUrl(java.lang.String url)
Set the URL for this blog referer

Parameters:
url - URL

getLastReferral

public java.util.Date getLastReferral()
Get the last date of referral for this URL

Returns:
Date of last referral

isToday

public boolean isToday()
Check whether this blog referer has been seen today

Returns:
true if it has been seen today, false otherwise

setLastReferral

public void setLastReferral(java.util.Date lastreferal)
Set the date of last referral for this blog referer

Parameters:
lastreferal - Last referral date

getCount

public int getCount()
Get the referer count

Returns:
Number of referrals

increment

public void increment()
Increment the referer count by 1


setCount

public void setCount(int count)
Set the referer count

Parameters:
count - Referer count