public class MimeTypeUtil extends Object
Constructor and Description |
---|
MimeTypeUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getResponseMimeType(String pRequestMimeType,
String defaultMimeType,
String pCallback)
Extract the response mime type.
|
static boolean |
isValidCallback(String pCallback)
Check that a callback matches a javascript function name.
|
public static String getResponseMimeType(String pRequestMimeType, String defaultMimeType, String pCallback)
pRequestMimeType
- the mimetype given in the requestdefaultMimeType
- the default mime type to use if none is given in the requestpCallback
- a callback given (can be null)public static boolean isValidCallback(String pCallback)
pCallback
- callback to verifyCopyright © 2021. All rights reserved.