Cache Mapping
Web Application WAR file -> General tabbed pane -> Sun-specific Settings button
-> Sun-specific Settings dialog box -> Select Cache Map Policy from the View drop-down list
The Application Server can determine caching criteria programmatically by writing a cache helper class.
In the Cache Mapping tabbed pane you can specify a custom class that implements the CacheHelper interface.
In the Cache Helper Properties section of the screen, define the helper properties.
To add a Cache Helper Property:
- Click Add.
- In the Cache Helper Name column, enter a unique name for the helper class.
- In the Class Name column, enter a fully qualified class name. It must implement the
com.sun.appserv.web.CacheHelper interface.
- Enter the number of properties for the Cache Helper.
To delete a Cache Helper Property:
- Select the row containing the property.
- Click Delete.
In the Cache Mapping Configuration pane, define the mapping configuration.
To add a Cache Mapping Configuration:
- Click the Add button.
- In the Cache Target column, select either a ServletName or a URL pattern.
- In the Target Value column, enter the name of the servlet or the URL depending on your selection in the previous column.
- In the Cache Reference column, select whether this target is a Cache Policy Reference or Cache Helper Reference.
- In the Reference Value column, enter the policy value.
To delete a Cache Mapping Configuration:
- Select the row containing the property.
- Click the Delete button.
Select Edit Policy dialog box to create cacheability constraints for URL patterns or servlet names.
Legal Notices