@Path(value="/mime-types") public class TikaMimeTypes extends Object
Provides details of all the mimetypes known to Apache Tika, similar to --list-supported-types with the Tika CLI.
Constructor and Description |
---|
TikaMimeTypes(TikaConfig tika) |
Modifier and Type | Method and Description |
---|---|
protected List<org.apache.tika.server.TikaMimeTypes.MediaTypeDetails> |
getMediaTypes() |
String |
getMimeTypesHTML() |
String |
getMimeTypesJSON() |
String |
getMimeTypesPlain() |
public TikaMimeTypes(TikaConfig tika)
@GET @Produces(value="text/html") public String getMimeTypesHTML()
@GET @Produces(value="application/json") public String getMimeTypesJSON()
@GET @Produces(value="text/plain") public String getMimeTypesPlain()
protected List<org.apache.tika.server.TikaMimeTypes.MediaTypeDetails> getMediaTypes()
Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.