Package org.apache.tika.parser.geo.topic
Class GeoParserConfig.RuntimeConfig
java.lang.Object
org.apache.tika.parser.geo.topic.GeoParserConfig
org.apache.tika.parser.geo.topic.GeoParserConfig.RuntimeConfig
- All Implemented Interfaces:
Serializable
- Enclosing class:
- GeoParserConfig
RuntimeConfig blocks modification of security-sensitive URL/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 URL/path injection.
This class is deserialized by ConfigDeserializer (in tika-serialization) which uses Jackson to populate fields via setters. If the JSON contains any URL/path fields, the overridden setters will throw TikaConfigException.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tika.parser.geo.topic.GeoParserConfig
GeoParserConfig.RuntimeConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetGazetteerRestEndpoint(String gazetteerRestEndpoint) Configure REST endpoint for lucene-geo-gazetteervoidsetNERModelPath(String path) voidsetNerModelUrl(URL url) Methods inherited from class org.apache.tika.parser.geo.topic.GeoParserConfig
getGazetteerRestEndpoint, getNerModelUrl
-
Constructor Details
-
RuntimeConfig
public RuntimeConfig()
-
-
Method Details
-
setNerModelUrl
- Overrides:
setNerModelUrlin classGeoParserConfig
-
setNERModelPath
- Overrides:
setNERModelPathin classGeoParserConfig
-
setGazetteerRestEndpoint
Description copied from class:GeoParserConfigConfigure REST endpoint for lucene-geo-gazetteer- Overrides:
setGazetteerRestEndpointin classGeoParserConfig
-