cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arno Illmann <arno.illm...@gmx.de>
Subject Documentation / API - Doc
Date Tue, 25 Sep 2001 13:44:23 GMT
Dear Cocooners!

Where can I find the API-Docs for C2? Could it be a part in the answers for my questions in
thread "Documentation of sitemap syntax, XSP-Logicsheets and configuring for actions" two
threads before?

I know, the Cocoon developers are commenting there code like in \src\org\apache\cocoon\acting\HelloAction.java
like below. How can I "translate" any comments and syntax or description in API-Doc in appropriate
syntax for i.e the sitemap?

Thanks in advance, Arno

----------------
/**
 * A simple Action that tracks if a <code>Session</code> object
 * has been created or not.
 *
 * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
 * @version CVS $Revision: 1.5 $ $Date: 2001/08/22 12:03:32 $
 */
public class HelloAction extends ComposerAction implements ThreadSafe {

    /**
     * A simple Action that logs if the <code>Session</code> object
     * has been created
     */
    public Map act (Redirector redirector, SourceResolver resolver, Map objectModel, String
src, Parameters par) throws Exception {
        Request request = (Request) objectModel.get(Constants.REQUEST_OBJECT);
        if (request != null) {
            Session session = request.getSession (false);

            if (session != null) {
                if (session.isNew()) {
                    getLogger().debug("Session is new");
                } else {
                    getLogger().debug("Session is old");
                }
            } else {
                getLogger().debug("A session object was not created");
            }
        }

        return null;
    }
}

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message