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 Details

    • log

      protected static final org.apache.commons.logging.Log log
      logger instance
  • Constructor Details

    • XMLHandlerConfigurator

      public XMLHandlerConfigurator(FOUserAgent userAgent)
      Default constructor
      Parameters:
      userAgent - the user agent
  • Method Details

    • getHandlerConfig

      private Configuration getHandlerConfig(Configuration cfg, 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, 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