public final class Utils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
addWebLengths(String length1,
String length2) |
static String |
divideWebLength(String length,
int divider) |
static String |
getImageMimeType(String ext) |
static boolean |
isVirtualHosting(HttpServletRequest request) |
static void |
setCacheHeaders(HttpServletResponse response,
CachingDef caching) |
static String |
substractWebLengths(String length1,
String length2) |
static boolean |
supportsGzip(HttpServletRequest request) |
static String |
toJson(Object object) |
public static boolean supportsGzip(HttpServletRequest request)
public static void setCacheHeaders(HttpServletResponse response, CachingDef caching)
public static boolean isVirtualHosting(HttpServletRequest request)
Copyright © 2011 Nuxeo SA. All Rights Reserved.