-
- 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.
-
-
Constructor Summary
Constructors Constructor Description MimeInfoContext()
-
Method Summary
-
-
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.
-
-
-
-