org.apache.lenya.cms.cocoon.acting
Class LanguageExistsAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.apache.lenya.cms.cocoon.acting.LanguageExistsAction
- All Implemented Interfaces:
- org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, org.apache.cocoon.acting.Action
public class LanguageExistsAction
- extends org.apache.cocoon.acting.ServiceableAction
Action that checks if the current URL represents an existing document.
Fields inherited from class org.apache.cocoon.acting.ServiceableAction |
manager |
Fields inherited from class org.apache.cocoon.acting.AbstractAction |
EMPTY_MAP |
Fields inherited from interface org.apache.cocoon.acting.Action |
ROLE |
Method Summary |
java.util.Map |
act(org.apache.cocoon.environment.Redirector redirector,
org.apache.cocoon.environment.SourceResolver resolver,
java.util.Map objectModel,
java.lang.String source,
org.apache.avalon.framework.parameters.Parameters parameters)
Check if the current URL represents an existing document. |
Methods inherited from class org.apache.cocoon.acting.ServiceableAction |
service |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LanguageExistsAction
public LanguageExistsAction()
act
public java.util.Map act(org.apache.cocoon.environment.Redirector redirector,
org.apache.cocoon.environment.SourceResolver resolver,
java.util.Map objectModel,
java.lang.String source,
org.apache.avalon.framework.parameters.Parameters parameters)
throws java.lang.Exception
- Check if the current URL represents an existing document.
- Returns:
- an empty
Map
if there is a version of this document for the current
language, null
otherwise.
- Throws:
java.lang.Exception
- if an error occurs
Copyright © 1999-2006 Apache Software Foundation. All Rights Reserved.