org.apache.cocoon.components.treeprocessor.sitemap
Class HandleErrorsNode
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.treeprocessor.AbstractProcessingNode
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.