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

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

public final class HandleErrorsNode
extends AbstractParentProcessingNode

Handles <map:handle-errors>

Version:
$Id: HandleErrorsNode.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez

Field Summary
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
location
 
Fields inherited from interface org.apache.cocoon.components.treeprocessor.ProcessingNode
OBJECT_SOURCE_RESOLVER
 
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, getSourceResolver, setLocation
 
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.
Throws:
ConfigurationException
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-2010 The Apache Software Foundation. All Rights Reserved.