Skip navigation links

Oracle Containers for J2EE Support for JavaServer Pages Java API Reference
10g (10.1.3.1.0)

B28960-01


oracle.jsp.jwcache
Class StringSectionId

java.lang.Object
  extended byoracle.jsp.jwcache.StringSectionId

All Implemented Interfaces:
SectionId

public class StringSectionId
extends java.lang.Object
implements SectionId

String version of SectionId (as opposed to NumberSectionId). This version of SectionId is mainly to store or retrieve a cache entry under a particular URL/page under an auto-type cache policy (i.e. NON-TYPE_USERSPECIFIED).

For example, a cache object can be stored under the name "foo1" under "/dir1/mypage.jsp?p1=v1". The cache object can be retrieved under the same name later. Similarly, the cache object can be invalidated under the same name. It is different from TYPE_USERSPECIFIED cache. With using this StringSectionId, developers can still enjoy all the naming convenience and benefit of an auto cache policy, such as, using selected parameters feature, a sensible web-based naming hierarchy.

A more concrete example is: if caches under "/dir1/mypage.jsp?p1=v1" are invalidated on the page level, "foo1" will be invalidated at the same time. No need to keep track the relation explicitly yourself.


Constructor Summary
StringSectionId(java.lang.String s)
          The constructor of StringSectionId: the given string cannot be null; cannot be zero length; cannot begin with a number

 

Method Summary
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

StringSectionId

public StringSectionId(java.lang.String s)
The constructor of StringSectionId: the given string cannot be null; cannot be zero length; cannot begin with a number

Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface SectionId

Skip navigation links

Oracle Containers for J2EE Support for JavaServer Pages Java API Reference
10g (10.1.3.1.0)

B28960-01


Copyright © 2004, 2006, Oracle. All rights reserved.