@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() |
Modifier and Type | Method and Description |
---|---|
protected List<org.apache.tika.server.resource.TikaMimeTypes.MediaTypeDetails> |
getMediaTypes() |
String |
getMimeTypesHTML() |
String |
getMimeTypesJSON() |
String |
getMimeTypesPlain() |
@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.resource.TikaMimeTypes.MediaTypeDetails> getMediaTypes()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.