railo.runtime.cache.legacy
Class CacheItem

java.lang.Object
  extended by railo.runtime.cache.legacy.CacheItem
Direct Known Subclasses:
CacheItemCache

public abstract class CacheItem
extends Object


Constructor Summary
CacheItem(PageContext pc, javax.servlet.http.HttpServletRequest req, String id, String key, boolean useId)
           
 
Method Summary
static void flush(PageContext pc, Resource dir, String cacheName, String expireurl)
           
static void flushAll(PageContext pc, Resource dir, String cacheName)
           
static CacheItem getInstance(PageContext pc, String id, String key, boolean useId, Resource dir, String cacheName, TimeSpan timespan)
           
abstract  String getValue()
           
abstract  boolean isValid()
           
abstract  boolean isValid(TimeSpan timespan)
           
abstract  void store(byte[] barr, boolean append)
           
abstract  void store(String result)
           
abstract  void writeTo(OutputStream os, String charset)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheItem

public CacheItem(PageContext pc,
                 javax.servlet.http.HttpServletRequest req,
                 String id,
                 String key,
                 boolean useId)
          throws IOException
Throws:
IOException
Method Detail

getInstance

public static CacheItem getInstance(PageContext pc,
                                    String id,
                                    String key,
                                    boolean useId,
                                    Resource dir,
                                    String cacheName,
                                    TimeSpan timespan)
                             throws IOException
Throws:
IOException

isValid

public abstract boolean isValid()

isValid

public abstract boolean isValid(TimeSpan timespan)

writeTo

public abstract void writeTo(OutputStream os,
                             String charset)
                      throws IOException
Throws:
IOException

getValue

public abstract String getValue()
                         throws IOException
Throws:
IOException

store

public abstract void store(String result)
                    throws IOException
Throws:
IOException

store

public abstract void store(byte[] barr,
                           boolean append)
                    throws IOException
Throws:
IOException

flushAll

public static void flushAll(PageContext pc,
                            Resource dir,
                            String cacheName)
                     throws IOException
Throws:
IOException

flush

public static void flush(PageContext pc,
                         Resource dir,
                         String cacheName,
                         String expireurl)
                  throws IOException,
                         org.apache.oro.text.regex.MalformedPatternException
Throws:
IOException
org.apache.oro.text.regex.MalformedPatternException


Copyright © 2012 Railo