Package org.ametys.web.workspace
Class FrontAwareWorkspaceMatcher
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.matching.AbstractWildcardMatcher
org.apache.cocoon.matching.WildcardURIMatcher
org.ametys.runtime.workspace.WorkspaceMatcher
org.ametys.web.workspace.FrontAwareWorkspaceMatcher
- All Implemented Interfaces:
Component
,LogEnabled
,ThreadSafe
,Matcher
Same as
FrontAwareWorkspaceMatcher
but that :- add an offset in wildcard expression,
- will refuse workspaces that are not front-aware,
- will set the "site" attribute
-
Field Summary
Fields inherited from class org.ametys.runtime.workspace.WorkspaceMatcher
IN_WORKSPACE_URL, WORKSPACE_NAME, WORKSPACE_THEME, WORKSPACE_THEME_URL, WORKSPACE_URI
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
In the wildcard expression where to find the first relevant informationprotected Workspace
getWorkspace
(String workspaceName) Get the selected workspacematch
(String pattern, Map objectModel, Parameters parameters) Methods inherited from class org.apache.cocoon.matching.WildcardURIMatcher
getMatchString
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
FrontAwareWorkspaceMatcher
public FrontAwareWorkspaceMatcher()
-
-
Method Details
-
getWildcardStartIndex
Description copied from class:WorkspaceMatcher
In the wildcard expression where to find the first relevant information- Overrides:
getWildcardStartIndex
in classWorkspaceMatcher
- Returns:
- An integer > 0
-
getWorkspace
Description copied from class:WorkspaceMatcher
Get the selected workspace- Overrides:
getWorkspace
in classWorkspaceMatcher
- Parameters:
workspaceName
- The workspace name to get- Returns:
- The workspace if it exists and is supported
-
match
- Specified by:
match
in interfaceMatcher
- Overrides:
match
in classWorkspaceMatcher
- Throws:
PatternException
-