@Path(value="/tika") public class TikaResource extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GREETING |
static String |
X_TIKA_OCR_HEADER_PREFIX |
static String |
X_TIKA_PDF_HEADER_PREFIX |
Constructor and Description |
---|
TikaResource() |
Modifier and Type | Method and Description |
---|---|
static Parser |
createParser() |
static String |
detectFilename(javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders) |
static void |
fillMetadata(Parser parser,
Metadata metadata,
ParseContext context,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders) |
static void |
fillParseContext(ParseContext parseContext,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
Parser embeddedParser) |
static TikaConfig |
getConfig() |
static Detector |
getDetector(Parser p) |
javax.ws.rs.core.StreamingOutput |
getHTML(InputStream is,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.UriInfo info) |
javax.ws.rs.core.StreamingOutput |
getHTMLFromMultipart(org.apache.cxf.jaxrs.ext.multipart.Attachment att,
javax.ws.rs.core.UriInfo info) |
String |
getMessage() |
javax.ws.rs.core.StreamingOutput |
getText(InputStream is,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.UriInfo info) |
javax.ws.rs.core.StreamingOutput |
getTextFromMultipart(org.apache.cxf.jaxrs.ext.multipart.Attachment att,
javax.ws.rs.core.UriInfo info) |
javax.ws.rs.core.StreamingOutput |
getXML(InputStream is,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.UriInfo info) |
javax.ws.rs.core.StreamingOutput |
getXMLFromMultipart(org.apache.cxf.jaxrs.ext.multipart.Attachment att,
javax.ws.rs.core.UriInfo info) |
static void |
init(TikaConfig config,
DigestingParser.Digester digestr) |
static void |
logRequest(org.apache.commons.logging.Log logger,
javax.ws.rs.core.UriInfo info,
Metadata metadata) |
static void |
parse(Parser parser,
org.apache.commons.logging.Log logger,
String path,
InputStream inputStream,
ContentHandler handler,
Metadata metadata,
ParseContext parseContext) |
javax.ws.rs.core.StreamingOutput |
produceText(InputStream is,
javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders,
javax.ws.rs.core.UriInfo info) |
static void |
setDetector(Parser p,
Detector detector) |
public static final String GREETING
public static final String X_TIKA_OCR_HEADER_PREFIX
public static final String X_TIKA_PDF_HEADER_PREFIX
public static void init(TikaConfig config, DigestingParser.Digester digestr)
public static Parser createParser()
public static TikaConfig getConfig()
public static String detectFilename(javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders)
public static void fillParseContext(ParseContext parseContext, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, Parser embeddedParser)
public static void fillMetadata(Parser parser, Metadata metadata, ParseContext context, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders)
public static void parse(Parser parser, org.apache.commons.logging.Log logger, String path, InputStream inputStream, ContentHandler handler, Metadata metadata, ParseContext parseContext) throws IOException
IOException
public static void logRequest(org.apache.commons.logging.Log logger, javax.ws.rs.core.UriInfo info, Metadata metadata)
@GET @Produces(value="text/plain") public String getMessage()
@POST @Consumes(value="multipart/form-data") @Produces(value="text/plain") @Path(value="form") public javax.ws.rs.core.StreamingOutput getTextFromMultipart(org.apache.cxf.jaxrs.ext.multipart.Attachment att, @Context javax.ws.rs.core.UriInfo info)
@PUT @Consumes(value="*/*") @Produces(value="text/plain") public javax.ws.rs.core.StreamingOutput getText(InputStream is, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo info)
public javax.ws.rs.core.StreamingOutput produceText(InputStream is, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, javax.ws.rs.core.UriInfo info)
@POST @Consumes(value="multipart/form-data") @Produces(value="text/html") @Path(value="form") public javax.ws.rs.core.StreamingOutput getHTMLFromMultipart(org.apache.cxf.jaxrs.ext.multipart.Attachment att, @Context javax.ws.rs.core.UriInfo info)
@PUT @Consumes(value="*/*") @Produces(value="text/html") public javax.ws.rs.core.StreamingOutput getHTML(InputStream is, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo info)
@POST @Consumes(value="multipart/form-data") @Produces(value="text/xml") @Path(value="form") public javax.ws.rs.core.StreamingOutput getXMLFromMultipart(org.apache.cxf.jaxrs.ext.multipart.Attachment att, @Context javax.ws.rs.core.UriInfo info)
@PUT @Consumes(value="*/*") @Produces(value="text/xml") public javax.ws.rs.core.StreamingOutput getXML(InputStream is, @Context javax.ws.rs.core.HttpHeaders httpHeaders, @Context javax.ws.rs.core.UriInfo info)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.