Package org.apache.tika.parser.dwg
Class DWGParserConfig.RuntimeConfig
java.lang.Object
org.apache.tika.parser.dwg.DWGParserConfig
org.apache.tika.parser.dwg.DWGParserConfig.RuntimeConfig
- All Implemented Interfaces:
Serializable,Initializable
- Enclosing class:
- DWGParserConfig
RuntimeConfig blocks modification of security-sensitive path fields at runtime.
When a config is obtained from ParseContext (i.e. user-provided at parse time),
it should be deserialized as a RuntimeConfig to prevent path injection.
This class is deserialized by ConfigDeserializer (in tika-serialization) which uses Jackson to populate fields via setters. If the JSON contains any path fields, the overridden setters will throw TikaConfigException.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tika.parser.dwg.DWGParserConfig
DWGParserConfig.RuntimeConfig -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.tika.parser.dwg.DWGParserConfig
getCleanDwgReadOutputBatchSize, getCleanDwgReadRegexToReplace, getCleanDwgReadReplaceWith, getDwgReadExecutable, getDwgReadTimeout, hasDwgRead, initialize, isCleanDwgReadOutput, setCleanDwgReadOutput, setCleanDwgReadOutputBatchSize, setCleanDwgReadRegexToReplace, setCleanDwgReadReplaceWith, setDwgReadTimeout
-
Constructor Details
-
RuntimeConfig
public RuntimeConfig()
-
-
Method Details
-
setDwgReadExecutable
- Overrides:
setDwgReadExecutablein classDWGParserConfig
-