Class PipesResource
java.lang.Object
org.apache.tika.server.core.resource.PipesResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsepostRmeta(InputStream is, jakarta.ws.rs.core.HttpHeaders httpHeaders, jakarta.ws.rs.core.UriInfo info) The client posts a single JSON FetchEmitTuple: a fetcher and fetch key for input and an emitter for output; it may also carry a metadata object (passed through to the emitted metadata) and a parse context.
-
Constructor Details
-
PipesResource
- Parameters:
pipesParser- shared parser, also used by /tika, /rmeta, and /unpack. Lifecycle (construction, shutdown) is owned by whoever built it, not by this class.pipesConfig- the parser's config; read here for theRetry-Aftervalue.
-
-
Method Details
-
postRmeta
@POST @Produces("application/json") public jakarta.ws.rs.core.Response postRmeta(InputStream is, @Context jakarta.ws.rs.core.HttpHeaders httpHeaders, @Context jakarta.ws.rs.core.UriInfo info) throws Exception The client posts a single JSON FetchEmitTuple: a fetcher and fetch key for input and an emitter for output; it may also carry a metadata object (passed through to the emitted metadata) and a parse context.The extracted text content is stored with the key
TikaCoreProperties.TIKA_CONTENT- Parameters:
info- uri info- Returns:
{"status":<RESULT_STATUS>,"message":...}, with HTTP status reflecting whether the process succeeded, crashed, or was unavailable within the configured wait- Throws:
Exception
-