Class TesseractServerConfig
java.lang.Object
org.apache.tika.server.standard.config.TesseractServerConfig
- All Implemented Interfaces:
ParseContextConfig
Tesseract configuration, for the request
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The HTTP header prefix required (case-insensitive) by this config. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, Metadata metadata, ParseContext parseContext) Configures the parseContext with present headers.
-
Field Details
-
X_TIKA_OCR_HEADER_PREFIX
The HTTP header prefix required (case-insensitive) by this config.- See Also:
-
-
Constructor Details
-
TesseractServerConfig
public TesseractServerConfig()
-
-
Method Details
-
configure
public void configure(jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, Metadata metadata, ParseContext parseContext) Configures the parseContext with present headers. Note: only first value of header is considered.- Specified by:
configure
in interfaceParseContextConfig
- Parameters:
httpHeaders
- the headers.metadata
- the metadata.parseContext
- the parse context to configure.
-