Class XMLHandlerConfigurator

    • Field Detail

      • log

        protected static final org.apache.commons.logging.Log log
        logger instance
    • 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 configuration
        namespace - 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