Constructor and Description |
---|
MimeTypes() |
Modifier and Type | Method and Description |
---|---|
String |
getMimeType(String filename)
Get the Mime Type for the provided filename.
|
String |
getResource() |
void |
initialize() |
void |
load(InputStream mimeStream) |
void |
load(String resourceName) |
void |
setResource(String resource) |
public MimeTypes()
public String getMimeType(String filename)
filename
- the filename to obtain the mime type for.@PostConstruct public void initialize()
public void load(InputStream mimeStream)
public String getResource()
public void setResource(String resource)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.