org.apache.cocoon.components.treeprocessor.sitemap
Class HandleErrorsNode

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.components.treeprocessor.AbstractProcessingNode
          extended byorg.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
              extended byorg.apache.cocoon.components.treeprocessor.sitemap.HandleErrorsNode
All Implemented Interfaces:
ExecutionContext, Locatable, LogEnabled, ProcessingNode, ThreadSafe

public final class HandleErrorsNode
extends AbstractParentProcessingNode

Handles <map:handle-errors>

Version:
$Id: HandleErrorsNode.java 179045 2005-05-30 11:08:13Z cziegeler $
Author:
Sylvain Wallez

Field Summary
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
componentName, executor, location
 
Constructor Summary
HandleErrorsNode(int statusCode, String scope)
           
 
Method Summary
 int getStatusCode()
           
 boolean invoke(Environment env, InvokeContext context)
          Process environment.
 boolean isExternal()
           
 boolean isInternal()
           
 void setChildren(ProcessingNode[] nodes)
           
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
invokeNodes, invokeNodes
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
getLocation, getType, setLocation, setSitemapExecutor
 
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
 

Constructor Detail

HandleErrorsNode

public HandleErrorsNode(int statusCode,
                        String scope)
                 throws ConfigurationException
Parameters:
statusCode - Value of the type attribute: 404 (deprecated), 500 (deprecated), or -1 (no attribute present).
scope - Value of the error handler scope attribute: external, internal, always.
Method Detail

getStatusCode

public int getStatusCode()

isInternal

public boolean isInternal()

isExternal

public boolean isExternal()

setChildren

public void setChildren(ProcessingNode[] nodes)

invoke

public final boolean invoke(Environment env,
                            InvokeContext context)
                     throws Exception
Description copied from interface: ProcessingNode
Process environment.

Throws:
Exception


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.