|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.searchApp.taglibrary.BodyCache
Utility class to cache the results of ICustomTag
getBody( ) operations
to avoid redoing the same work over and over. The getBodyCache( ) method
compares the current set of request parameters sent to the getBody( ) method
with the last set of parameters. If they are the same, the cached body string
is returned.
| Constructor Summary | |
BodyCache(java.util.ArrayList requestParams)
Constructor takes a list of request parameters that should be monitored for change. |
|
| Method Summary | |
java.lang.String |
getBodyCache(RaritanPageContext rpc)
returns the HTML String that was last set with the setLastRequest( ) method if the set of monitored HTTP parameters in the current page context are identical to those contained in set last sent to the setLastRequest( ) method. |
void |
setLastRequest(RaritanPageContext rpc,
java.lang.String lastBody)
Sets the last request that was sent to the ICustomTag and the last output that corresponding to the request. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BodyCache(java.util.ArrayList requestParams)
| Method Detail |
public void setLastRequest(RaritanPageContext rpc,
java.lang.String lastBody)
rpc - The page request that contains the last http request.lastBody - The last HTML segment that was returned by the Custom Tag.public java.lang.String getBodyCache(RaritanPageContext rpc)
rpc - The current HTTP request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||