|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.record.AbstractPrefixedClientPropertyPersistenceScope
public abstract class AbstractPrefixedClientPropertyPersistenceScope
Base implementation of ClientPropertyPersistenceScope
wherein
the scopes are recognized via a prefix on the page name to form the query parameter name.
Capiche?
Constructor Summary | |
---|---|
AbstractPrefixedClientPropertyPersistenceScope(java.lang.String prefix)
|
Method Summary | |
---|---|
java.lang.String |
constructParameterName(java.lang.String pageName)
Constructs a parameter name for a particular page name. |
java.lang.String |
extractPageName(java.lang.String parameterName)
Extracts a page name from a query parameter name. |
boolean |
isParameterForScope(java.lang.String parameterName)
Checks a parameter to see if it was the result of ClientPropertyPersistenceScope.constructParameterName(String) for
this persistence scope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.record.ClientPropertyPersistenceScope |
---|
shouldEncodeState |
Constructor Detail |
---|
public AbstractPrefixedClientPropertyPersistenceScope(java.lang.String prefix)
Method Detail |
---|
public java.lang.String constructParameterName(java.lang.String pageName)
ClientPropertyPersistenceScope
ClientPropertyPersistenceScope.isParameterForScope(String)
method.
constructParameterName
in interface ClientPropertyPersistenceScope
pageName
- the name of the page for which a corresponding parameter name should be generated.public boolean isParameterForScope(java.lang.String parameterName)
ClientPropertyPersistenceScope
ClientPropertyPersistenceScope.constructParameterName(String)
for
this persistence scope.
isParameterForScope
in interface ClientPropertyPersistenceScope
parameterName
- a query parameter name
public java.lang.String extractPageName(java.lang.String parameterName)
ClientPropertyPersistenceScope
extractPageName
in interface ClientPropertyPersistenceScope
parameterName
- the paramter name, for which {@link #isParameterForScope(String) must return true
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |