Package org.apache.fop.render
Class XMLHandlerConfigurator
- java.lang.Object
-
- org.apache.fop.render.AbstractRendererConfigurator
-
- org.apache.fop.render.XMLHandlerConfigurator
-
public class XMLHandlerConfigurator extends AbstractRendererConfigurator
Configurator for XMLHandler objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
log
logger instance-
Fields inherited from class org.apache.fop.render.AbstractRendererConfigurator
userAgent
-
-
Constructor Summary
Constructors Constructor Description XMLHandlerConfigurator(FOUserAgent userAgent)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(RendererContext context, java.lang.String ns)
Configures renderer context by setting the handler configuration on it.private Configuration
getHandlerConfig(Configuration cfg, java.lang.String namespace)
Returns the configuration subtree for a specific renderer.-
Methods inherited from class org.apache.fop.render.AbstractRendererConfigurator
getType
-
-
-
-
Constructor Detail
-
XMLHandlerConfigurator
public XMLHandlerConfigurator(FOUserAgent userAgent)
Default constructor- Parameters:
userAgent
- the user agent
-
-
Method Detail
-
getHandlerConfig
private Configuration getHandlerConfig(Configuration cfg, java.lang.String namespace)
Returns the configuration subtree for a specific renderer.- Parameters:
cfg
- the renderer configurationnamespace
- the namespace (i.e. the XMLHandler) for which the configuration should be returned- Returns:
- the requested configuration subtree, null if there's no configuration
-
configure
public void configure(RendererContext context, java.lang.String ns) throws FOPException
Configures renderer context by setting the handler configuration on it.- Parameters:
context
- the RendererContext (contains the user agent)ns
- the Namespace of the foreign object- Throws:
FOPException
- if configuring the target objects fails
-
-