@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.
Can also provide full details on a single known type.
Constructor and Description |
---|
TikaMimeTypes() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.tika.server.core.resource.TikaMimeTypes.MediaTypeDetails |
getMediaType(String type,
String subtype) |
protected List<org.apache.tika.server.core.resource.TikaMimeTypes.MediaTypeDetails> |
getMediaTypes() |
String |
getMimeTypeDetailsHTML(String typePart,
String subtype) |
String |
getMimeTypeDetailsJSON(String typePart,
String subtype) |
String |
getMimeTypesHTML() |
String |
getMimeTypesJSON() |
String |
getMimeTypesPlain() |
@GET @Produces(value="text/html") public String getMimeTypesHTML()
@GET @Path(value="/{type}/{subtype}") @Produces(value="text/html") public String getMimeTypeDetailsHTML(@PathParam(value="type") String typePart, @PathParam(value="subtype") String subtype)
@GET @Produces(value="application/json") public String getMimeTypesJSON() throws IOException
IOException
@GET @Path(value="/{type}/{subtype}") @Produces(value="application/json") public String getMimeTypeDetailsJSON(@PathParam(value="type") String typePart, @PathParam(value="subtype") String subtype) throws IOException
IOException
@GET @Produces(value="text/plain") public String getMimeTypesPlain()
protected org.apache.tika.server.core.resource.TikaMimeTypes.MediaTypeDetails getMediaType(String type, String subtype) throws javax.ws.rs.NotFoundException
javax.ws.rs.NotFoundException
protected List<org.apache.tika.server.core.resource.TikaMimeTypes.MediaTypeDetails> getMediaTypes()
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.