@Path(value="/pipes") public class PipesResource extends Object
| Constructor and Description |
|---|
PipesResource(Path tikaConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Map<String,String> |
postRmeta(InputStream is,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.UriInfo info)
The client posts a json request.
|
public PipesResource(Path tikaConfig) throws TikaConfigException, IOException
TikaConfigExceptionIOException@POST @Produces(value="application/json") public Map<String,String> postRmeta(InputStream is, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo info) throws Exception
The extracted text content is stored with the key
TikaCoreProperties.TIKA_CONTENT
Must specify a fetcherString and an emitter in the posted json.
public void close()
throws IOException
IOExceptionCopyright © 2007–2023 The Apache Software Foundation. All rights reserved.