Class ContentTypes


  • public final class ContentTypes
    extends java.lang.Object
    Contains the set of predefined content-types for convenience.

    If the ContentType you're looking for is not pre-defined here, you can obtain it from a MediaType by using: MediaTypes.TEXT_HTML.toContentType()