uPortal 2.3.2
API Documentation

org.jasig.portal.channels.wsrp
Class MarkupCache

java.lang.Object
  extended byorg.jasig.portal.channels.wsrp.MarkupCache

public class MarkupCache
extends java.lang.Object

A cache for portlet markup.

Version:
$Revision: 1.2 $
Author:
Ken Weiner, kweiner@unicon.net

Constructor Summary
MarkupCache()
           
 
Method Summary
 MarkupWrapper get(java.lang.String key, java.lang.String userScope)
          Retrieve a MarkupWrapper from the cache
 void put(java.lang.String key, MarkupWrapper markupWrapper)
          Add a MarkupWrapper into the cache.
 void remove(java.lang.String key, java.lang.String userScope)
          Removes a MarkupWrapper entry from the cache.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkupCache

public MarkupCache()
Method Detail

put

public void put(java.lang.String key,
                MarkupWrapper markupWrapper)
Add a MarkupWrapper into the cache. The MarkupWrapper contains the CacheControl which contains the user scope which controls the scoping of the cached markup.

Parameters:
key - the cache key
markupWrapper - the wrapped markup

get

public MarkupWrapper get(java.lang.String key,
                         java.lang.String userScope)
Retrieve a MarkupWrapper from the cache

Parameters:
key - the cache key
userScope - the user scope
Returns:
the wrapped markup

remove

public void remove(java.lang.String key,
                   java.lang.String userScope)
Removes a MarkupWrapper entry from the cache.

Parameters:
key - the cache key
userScope - the user scope

uPortal 2.3.2
API Documentation