Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.html
Class Utils

java.lang.Object
  extended by org.nuxeo.theme.html.Utils

public final class Utils
extends Object


Method Summary
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toJson

public static String toJson(Object object)

addWebLengths

public static String addWebLengths(String length1,
                                   String length2)

substractWebLengths

public static String substractWebLengths(String length1,
                                         String length2)

divideWebLength

public static String divideWebLength(String length,
                                     int divider)

supportsGzip

public static boolean supportsGzip(HttpServletRequest request)

setCacheHeaders

public static void setCacheHeaders(HttpServletResponse response,
                                   CachingDef caching)

isVirtualHosting

public static boolean isVirtualHosting(HttpServletRequest request)

getImageMimeType

public static String getImageMimeType(String ext)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.