Class TikaMimeTypes
java.lang.Object
org.apache.tika.server.core.resource.TikaMimeTypes
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.tika.server.core.resource.TikaMimeTypes.MediaTypeDetails
getMediaType
(String type, String subtype) protected List<org.apache.tika.server.core.resource.TikaMimeTypes.MediaTypeDetails>
getMimeTypeDetailsHTML
(String typePart, String subtype) getMimeTypeDetailsJSON
(String typePart, String subtype)
-
Constructor Details
-
TikaMimeTypes
public TikaMimeTypes()
-
-
Method Details
-
getMimeTypesHTML
-
getMimeTypeDetailsHTML
-
getMimeTypesJSON
- Throws:
IOException
-
getMimeTypeDetailsJSON
@GET @Path("/{type}/{subtype}") @Produces("application/json") public String getMimeTypeDetailsJSON(@PathParam("type") String typePart, @PathParam("subtype") String subtype) throws IOException - Throws:
IOException
-
getMimeTypesPlain
-
getMediaType
protected org.apache.tika.server.core.resource.TikaMimeTypes.MediaTypeDetails getMediaType(String type, String subtype) throws javax.ws.rs.NotFoundException - Throws:
javax.ws.rs.NotFoundException
-
getMediaTypes
-