Package org.apache.fop.apps
Class FopFactoryConfigurator
- java.lang.Object
-
- org.apache.fop.apps.FopFactoryConfigurator
-
@Deprecated(since="2021-03-01") public class FopFactoryConfigurator extends Object
Deprecated.Avoid using this package provided OOTB and migrate code a newer version which you can deploy as part of your project.FopFactory configurator
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_BREAK_INDENT_INHERITANCEDeprecated.Defines if FOP should use an alternative rule to determine text indentsstatic StringDEFAULT_PAGE_HEIGHTDeprecated.Defines the default page-heightstatic StringDEFAULT_PAGE_WIDTHDeprecated.Defines the default page-widthstatic floatDEFAULT_SOURCE_RESOLUTIONDeprecated.Defines the default source resolution (72dpi) for FOPstatic booleanDEFAULT_STRICT_FO_VALIDATIONDeprecated.Defines if FOP should use strict validation for FO and user configstatic booleanDEFAULT_STRICT_USERCONFIG_VALIDATIONDeprecated.Defines if FOP should validate the user config strictlystatic floatDEFAULT_TARGET_RESOLUTIONDeprecated.Defines the default target resolution (72dpi) for FOP
-
Constructor Summary
Constructors Constructor Description FopFactoryConfigurator(FopFactory factory)Deprecated.Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidconfigure(FopFactory factory)Deprecated.Initializes user agent settings from the user configuration file, if present: baseURL, resolution, default page size,...org.apache.avalon.framework.configuration.ConfigurationgetUserConfig()Deprecated.Get the avalon user configuration.voidsetUserConfig(File userConfigFile)Deprecated.Set the user configuration.voidsetUserConfig(String uri)Deprecated.Set the user configuration from an URI.voidsetUserConfig(org.apache.avalon.framework.configuration.Configuration cfg)Deprecated.Set the user configuration.
-
-
-
Field Detail
-
DEFAULT_BREAK_INDENT_INHERITANCE
public static final boolean DEFAULT_BREAK_INDENT_INHERITANCE
Deprecated.Defines if FOP should use an alternative rule to determine text indents- See Also:
- Constant Field Values
-
DEFAULT_STRICT_USERCONFIG_VALIDATION
public static final boolean DEFAULT_STRICT_USERCONFIG_VALIDATION
Deprecated.Defines if FOP should validate the user config strictly- See Also:
- Constant Field Values
-
DEFAULT_STRICT_FO_VALIDATION
public static final boolean DEFAULT_STRICT_FO_VALIDATION
Deprecated.Defines if FOP should use strict validation for FO and user config- See Also:
- Constant Field Values
-
DEFAULT_PAGE_WIDTH
public static final String DEFAULT_PAGE_WIDTH
Deprecated.Defines the default page-width- See Also:
- Constant Field Values
-
DEFAULT_PAGE_HEIGHT
public static final String DEFAULT_PAGE_HEIGHT
Deprecated.Defines the default page-height- See Also:
- Constant Field Values
-
DEFAULT_SOURCE_RESOLUTION
public static final float DEFAULT_SOURCE_RESOLUTION
Deprecated.Defines the default source resolution (72dpi) for FOP- See Also:
- Constant Field Values
-
DEFAULT_TARGET_RESOLUTION
public static final float DEFAULT_TARGET_RESOLUTION
Deprecated.Defines the default target resolution (72dpi) for FOP- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FopFactoryConfigurator
public FopFactoryConfigurator(FopFactory factory)
Deprecated.Default constructor- Parameters:
factory- fop factory
-
-
Method Detail
-
configure
public void configure(FopFactory factory) throws FOPException
Deprecated.Initializes user agent settings from the user configuration file, if present: baseURL, resolution, default page size,...- Parameters:
factory- fop factory- Throws:
FOPException- fop exception
-
setUserConfig
public void setUserConfig(File userConfigFile) throws SAXException, IOException
Deprecated.Set the user configuration.- Parameters:
userConfigFile- the configuration file- Throws:
IOException- if an I/O error occursSAXException- if a parsing error occurs
-
setUserConfig
public void setUserConfig(String uri) throws SAXException, IOException
Deprecated.Set the user configuration from an URI.- Parameters:
uri- the URI to the configuration file- Throws:
IOException- if an I/O error occursSAXException- if a parsing error occurs
-
setUserConfig
public void setUserConfig(org.apache.avalon.framework.configuration.Configuration cfg) throws FOPExceptionDeprecated.Set the user configuration.- Parameters:
cfg- avalon configuration- Throws:
FOPException- if a configuration problem occurs
-
getUserConfig
public org.apache.avalon.framework.configuration.Configuration getUserConfig()
Deprecated.Get the avalon user configuration.- Returns:
- the user configuration
-
-