# com.bea.p13n.servlets.jsp.taglib
ContentTagSupport Class

public class ContentTagSupport
extends `TagSupport`

Base Tag class for tags which deal with Content.

This provides access to the ContentCache.

Hierarchy
  `Object`
  `TagSupport`
  `TagSupport`
  `ContentTagSupport`

All Implemented Interfaces
  `IterationTag`, `Serializable`, `Tag`

Direct Known Subclasses
  `ContentQueryTag`, `ContentSelectorTag`

## Field Summary

`protected `String`` | `cacheId` The cache id.
`protected `String`` | `cacheScope` The cache scope.
`protected long` | `cacheTimeout` The cache timeout.
`protected `Map`` | `contextParams` The context params.
`protected boolean` | `useCache` Should this try to use the cache.

Fields from javax.servlet.jsp.tagext`.`TagSupport``
`id, pageContext`

Fields from interface javax.servlet.jsp.tagext`.`IterationTag``
`EVAL_BODY_AGAIN`

Fields from interface javax.servlet.jsp.tagext`.`Tag``
`EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE`

## Constructor Summary

ContentTagSupport()

## Method Summary

`protected `Node`[]` | `checkContentCache`() Check the content cache for the requested Content.
`public `String`` | `getCacheId`() Get cacheId which should be used.
`public `String`` | `getCacheScope`() Get the `ContentTagSupport.cacheScope```.
`public `String`` | `getCacheTimeout`() Get the value of `ContentTagSupport.cacheTimeout```.
`public `Map`` | `getContextParams`() Get the context params.
`public `String`` | `getUseCache`() Get the value of `ContentTagSupport.useCache```.
`protected void` | `initRepositoryManager`()
`public void` | `release`() Reset any variables.
`public void` | `setCacheId`(`String` s) Set the value of `ContentTagSupport.cacheId```.
`public void` | `setCacheScope`(`String` s) Set the `ContentTagSupport.cacheScope```.
`public void` | `setCacheTimeout`(`String` v) Set the value of `ContentTagSupport.cacheTimeout```.
`public void` | `setCacheTimeout`(long l) Set the value of `ContentTagSupport.cacheTimeout```.
`public void` | `setContextParams`(`String` str) Set the context params from semi-colon separate list of name=value pairs.
`public void` | `setContextParams`(`Map` m) Set the context params.
`public void` | `setInContentCache`(`Node`[] content) Update the content cache with the specified content.
`public void` | `setUseCache`(`String` s) Set the value of `ContentTagSupport.useCache```.
`public void` | `setUseCache`(boolean b) Set the value of `ContentTagSupport.useCache```.

Methods from `com.bea.p13n.servlets.jsp.`TagSupport``
``createAdviceRequest`, `createAdvisor``

Methods from `javax.servlet.jsp.tagext.`TagSupport``
`doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue`

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `javax.servlet.jsp.tagext.`IterationTag``
`doAfterBody`

Methods from interface `javax.servlet.jsp.tagext.`Tag``
`doEndTag, doStartTag, getParent, release, setPageContext, setParent`

## Field Detail

### cacheId

    protected String cacheId

  The cache id.

### cacheScope

    protected String cacheScope

  The cache scope.

### cacheTimeout

    protected long cacheTimeout

  The cache timeout.

### contextParams

    protected Map contextParams

  The context params.

### useCache

    protected boolean useCache

  Should this try to use the cache.

## Constructor Detail

### ContentTagSupport

    public ContentTagSupport()

## Method Detail

### checkContentCache() Method

    protected Node[] 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.

### getCacheId() Method

    public String getCacheId()

Get cacheId which should be used.

### getCacheScope() Method

    public String getCacheScope()

Get the `ContentTagSupport.cacheScope```.

### getCacheTimeout() Method

    public String getCacheTimeout()

Get the value of `ContentTagSupport.cacheTimeout```.

### getContextParams() Method

    public Map getContextParams()

Get the context params.

### getUseCache() Method

    public String getUseCache()

Get the value of `ContentTagSupport.useCache```.

### initRepositoryManager() Method

    protected void initRepositoryManager()

### release() Method

    public void release()

Reset any variables.

Overrides
  `TagSupport.release()`

### setCacheId(String) Method

    public void setCacheId(String s)

Set the value of `ContentTagSupport.cacheId```.

### setCacheScope(String) Method

    public void setCacheScope(String s)

Set the `ContentTagSupport.cacheScope```.

### setCacheTimeout(String) Method

    public void setCacheTimeout(String v)

Set the value of `ContentTagSupport.cacheTimeout```.

### setCacheTimeout(long) Method

    public void setCacheTimeout(long l)

Set the value of `ContentTagSupport.cacheTimeout```.

### setContextParams(String) Method

    public void setContextParams(String str)

Set the context params from semi-colon separate list of name=value pairs.

### setContextParams(Map) Method

    public void setContextParams(Map m)

Set the context params.

### setInContentCache(Node[]) Method

    public void setInContentCache(Node[] content)

Update the content cache with the specified content.

### setUseCache(String) Method

    public void setUseCache(String s)

Set the value of `ContentTagSupport.useCache```.

### setUseCache(boolean) Method

    public void setUseCache(boolean b)

Set the value of `ContentTagSupport.useCache```.