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(javax.servlet.http.HttpServletRequest request) |
static void |
setCacheHeaders(javax.servlet.http.HttpServletResponse response,
CachingDef caching) |
static String |
substractWebLengths(String length1,
String length2) |
static boolean |
supportsGzip(javax.servlet.http.HttpServletRequest request) |
static String |
toJson(Object object) |
public static boolean supportsGzip(javax.servlet.http.HttpServletRequest request)
public static void setCacheHeaders(javax.servlet.http.HttpServletResponse response, CachingDef caching)
public static boolean isVirtualHosting(javax.servlet.http.HttpServletRequest request)
Copyright © 2015 Nuxeo SA. All rights reserved.