BEA Systems, Inc.

com.beasys.commerce.p13n.tags
Class P13nContentTagSupport

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--com.beasys.commerce.axiom.p13n.jsp.tags.P13nTagSupport
              |
              +--com.beasys.commerce.p13n.tags.P13nContentTagSupport
Direct Known Subclasses:
ContentQueryTag, ContentSelectorTag

public class P13nContentTagSupport
extends P13nTagSupport

Base Tag class for tags which deal with Content.

This provides access to the ContentCache.

See Also:
Serialized Form

Field Summary
protected  java.lang.String cacheId
          The cache id.
protected  java.lang.String cacheScope
          The cache scope.
protected  long cacheTimeout
          The cache timeout.
protected  boolean useCache
          Should this try to use the cache.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Constructor Summary
P13nContentTagSupport()
           
 
Method Summary
protected  Content[] checkContentCache()
          Check the content cache for the requested Content.
 java.lang.String getCacheId()
          Get cacheId which should be used.
 java.lang.String getCacheScope()
          Get the cacheScope.
 java.lang.String getCacheTimeout()
          Get the value of cacheTimeout.
 java.lang.String getUseCache()
          Get the value of useCache.
 void release()
          Reset any variables.
 void setCacheId(java.lang.String s)
          Set the value of cacheId.
 void setCacheScope(java.lang.String s)
          Set the cacheScope.
 void setCacheTimeout(long l)
          Set the value of cacheTimeout.
 void setCacheTimeout(java.lang.String v)
          Set the value of cacheTimeout.
 void setInContentCache(Content[] content)
          Update the content cache with the specified content.
 void setUseCache(boolean b)
          Set the value of useCache.
 void setUseCache(java.lang.String s)
          Set the value of useCache.
 
Methods inherited from class com.beasys.commerce.axiom.p13n.jsp.tags.P13nTagSupport
getAdvisor, isJspBase, isP13NJspBase
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useCache

protected boolean useCache
Should this try to use the cache.

cacheScope

protected java.lang.String cacheScope
The cache scope.

cacheId

protected java.lang.String cacheId
The cache id.

cacheTimeout

protected long cacheTimeout
The cache timeout.
Constructor Detail

P13nContentTagSupport

public P13nContentTagSupport()
Method Detail

release

public void release()
Reset any variables.
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport

checkContentCache

protected Content[] checkContentCache()
Check the content cache for the requested Content.

This will use the useCache, cacheScope, cacheId, and cacheTimeout settings.

Returns:
the Content[] if it lives in the cache or has timedout, null if not.

setInContentCache

public void setInContentCache(Content[] content)
Update the content cache with the specified content.

getUseCache

public java.lang.String getUseCache()
Get the value of useCache.

setUseCache

public void setUseCache(java.lang.String s)
Set the value of useCache.

setUseCache

public void setUseCache(boolean b)
Set the value of useCache.

getCacheScope

public java.lang.String getCacheScope()
Get the cacheScope.

setCacheScope

public void setCacheScope(java.lang.String s)
Set the cacheScope.

getCacheId

public java.lang.String getCacheId()
Get cacheId which should be used.

setCacheId

public void setCacheId(java.lang.String s)
Set the value of cacheId.

getCacheTimeout

public java.lang.String getCacheTimeout()
Get the value of cacheTimeout.

setCacheTimeout

public void setCacheTimeout(java.lang.String v)
Set the value of cacheTimeout.

setCacheTimeout

public void setCacheTimeout(long l)
Set the value of cacheTimeout.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved