Class PipesResource

java.lang.Object
org.apache.tika.server.core.resource.PipesResource

@Path("/pipes") public class PipesResource extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    PipesResource(PipesParser pipesParser, PipesConfig pipesConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    postRmeta(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PipesResource

      public PipesResource(PipesParser pipesParser, PipesConfig pipesConfig)
      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 the Retry-After value.
  • 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