org.ceryle.wiki.plugin.transclude
Class CachedPage

java.lang.Object
  extended by org.ceryle.wiki.plugin.transclude.CachedPage

public class CachedPage
extends Object

Utility class, keeps load off server by limiting real page fetches via XML-RPC when folks are viewing pages containing the TranscludePlugin. Created on Jan 21, 2004.

Author:
John Volkar (john.volkar at gmail.com)

Constructor Summary
CachedPage(String rpcUrl, String name, int cacheLife, int sectionNumber)
           
 
Method Summary
 String getHtml()
           
 long getLastUpdate()
           
 String getName()
           
 void update(int cacheLife, int sectionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedPage

public CachedPage(String rpcUrl,
                  String name,
                  int cacheLife,
                  int sectionNumber)
Method Detail

update

public void update(int cacheLife,
                   int sectionNumber)

getHtml

public String getHtml()
Returns:
Returns the html.

getLastUpdate

public long getLastUpdate()
Returns:
Returns the lastUpdate.

getName

public String getName()
Returns:
Returns the name.


The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.