|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MediaTypePredictor
An interface which allows developers implement their own media type predictor.
| Method Summary | |
|---|---|
javax.ws.rs.core.MediaType |
getMediaTypeFromFile(java.io.File file)
Get the media type from a file name. |
javax.ws.rs.core.MediaType |
getMediaTypeFromFileName(java.lang.String fileName)
Get the media type from a file name. |
| Method Detail |
|---|
javax.ws.rs.core.MediaType getMediaTypeFromFile(java.io.File file)
file - The file from which to get the MediaType
MediaType for the give file; null - if file
is null; "application/octet-stream" if extension not recognized.CommonMediaType#getMediaTypeFromFileName(java.lang.String)javax.ws.rs.core.MediaType getMediaTypeFromFileName(java.lang.String fileName)
MediaType for
"*\/*", it will also return the same if the file is null.
fileName - The file name from which to get the MediaType
MediaType for the give file; null - if file
is null; "application/octet-stream" if extension not recognized.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||