public interface ContentTypeResolver
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType(java.lang.String fileName)
Gets the content type for the contribution source.
|
java.lang.String |
getContentType(java.net.URL contentUrl)
Gets the content type for the contribution source.
|
void |
register(java.lang.String fileExtension,
java.lang.String contentType)
Register a new file extension to content type mapping.
|
void |
unregister(java.lang.String fileExtension)
unregister an existing file extension.
|
java.lang.String getContentType(java.net.URL contentUrl)
throws org.fabric3.api.host.Fabric3Exception
contentUrl - URL for the content.org.fabric3.api.host.Fabric3Exception - if unable to resolve content typejava.lang.String getContentType(java.lang.String fileName)
throws org.fabric3.api.host.Fabric3Exception
fileName - the content file nameorg.fabric3.api.host.Fabric3Exception - if unable to resolve content typevoid register(java.lang.String fileExtension,
java.lang.String contentType)
fileExtension - the file extensioncontentType - the content typevoid unregister(java.lang.String fileExtension)
fileExtension - the file extension