Package org.vaadin.firitin.components
Interface DynamicFileDownloader.ContentTypeGenerator
- All Superinterfaces:
Serializable
- Enclosing class:
DynamicFileDownloader
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface DynamicFileDownloader.ContentTypeGenerator
extends Serializable
Generates the content of HTTP response header 'Content-Type'.
If known, should be set to the MIME type of the content.
Otherwise, the 'Content-Type' defaults to 'application/octet-stream'.
This indicates content as "arbitrary binary data".
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionUsed as 'Content-Type' HTTP response header.
-
Method Details
-
getContentType
String getContentType()Used as 'Content-Type' HTTP response header.- Returns:
- MIME type of the content.
-