Package 

Class MimeInfoContext

  • All Implemented Interfaces:
    io.github.asperan.mimeinfo.context.Context

    
    public final class MimeInfoContext
     implements Context<MimeInfoSpecs>
                        

    Class used in the extension for the MimeInfo specification.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit mimetype(MimeTypeSpecs.Type.MimeClass typeClass, String typeName, Function1<MimeTypeContext, Unit> configuration) Add a mimetype to the mimeinfo of the context.
      MimeInfoSpecs build() Build the object of the context.
      • Methods inherited from class java.lang.Object

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

      • MimeInfoContext

        MimeInfoContext()
    • Method Detail

      • mimetype

         final Unit mimetype(MimeTypeSpecs.Type.MimeClass typeClass, String typeName, Function1<MimeTypeContext, Unit> configuration)

        Add a mimetype to the mimeinfo of the context.

        Parameters:
        typeClass - The class of the MimeType.
        typeName - The name of the type.
        configuration - The configuration of the mime type.
      • build

         MimeInfoSpecs build()

        Build the object of the context.