public abstract class AbstractPrefixedClientPropertyPersistenceScope extends java.lang.Object implements ClientPropertyPersistenceScope
ClientPropertyPersistenceScope
wherein
the scopes are recognized via a prefix on the page name to form the query parameter name.
Capiche?Constructor and Description |
---|
AbstractPrefixedClientPropertyPersistenceScope(java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldEncodeState
public AbstractPrefixedClientPropertyPersistenceScope(java.lang.String prefix)
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 namepublic 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