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, waitshouldEncodeStatepublic AbstractPrefixedClientPropertyPersistenceScope(java.lang.String prefix)
public java.lang.String constructParameterName(java.lang.String pageName)
ClientPropertyPersistenceScopeClientPropertyPersistenceScope.isParameterForScope(String) method.constructParameterName in interface ClientPropertyPersistenceScopepageName - the name of the page for which a corresponding parameter name should be generated.public boolean isParameterForScope(java.lang.String parameterName)
ClientPropertyPersistenceScopeClientPropertyPersistenceScope.constructParameterName(String) for
this persistence scope.isParameterForScope in interface ClientPropertyPersistenceScopeparameterName - a query parameter namepublic java.lang.String extractPageName(java.lang.String parameterName)
ClientPropertyPersistenceScopeextractPageName in interface ClientPropertyPersistenceScopeparameterName - the paramter name, for which {@link #isParameterForScope(String) must return true