Class ContentTypes


  • public final class ContentTypes
    extends java.lang.Object
    Provides the registry for all content types.

    Content types are loaded via ContentTypeBundles using Java's service loader mechanism.

    • Constructor Summary

      Constructors 
      Constructor Description
      ContentTypes()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Content.Type[] all()
      Retrieve an array of all registered content types.
      static Content.Type forName​(java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContentTypes

        public ContentTypes()
    • Method Detail

      • all

        public static Content.Type[] all()
        Retrieve an array of all registered content types.
      • forName

        public static Content.Type forName​(java.lang.String name)