/** * Set download data. * @param file * @return the download id * @throws DownloadException */ public static long setDownload( final File file) throws DownloadException { return setDownload(file, null); }
/** * @return the system properties. */ public Set<String> getSystemProperties() { return SystemUtils.getSystemPropertiesStrings(); }
/** * Set a session attribute. * @param name * @param value */ public static void setSessionAttribute( final String name, final Object value) { setContextAttribute(name, value, RequestAttributes.SCOPE_SESSION); }
/** * @return a TagsConfigurator instance. */ public static TagsConfigurator getInstance() { if (singleton == null) { singleton = (TagsConfigurator) BeanUtils.getBean(TAGS_CONFIGURATOR_BEAN); } return singleton; }
/** * @return the session attributes. */ public Set<String> getSessionAttributes() { return ContextUtils.getSessionAttributesStrings(); }
/** * Set a download attribute for the download servlet. * @param name * @param value */ private static void setDownloadAttribute( final String name, final Object value) { ContextUtils.setGlobalSessionAttribute(name, value); }
/** * @return the cookies. */ public Set<String> getCookies() { return HttpUtils.getCookiesStrings(); }
/** * @return the cache manager. */ protected CacheManager getCacheManager() { if (cacheManager == null) { cacheManager = (CacheManager) BeanUtilsWeb.getBean(CACHE_MANAGER_BEAN); } return cacheManager; }
/** * Remove the attribute of the given name, if it exists. * @param name */ public static void removeSessionAttribute(final String name) { removeContextAttribute(name, RequestAttributes.SCOPE_SESSION); }
/** * @param request * @return All the attributes of the current session. */ private static Map<String, Object> getGlobalSessionAttributes( final HttpServletRequest request) { return getSessionAttributes(request); }
/** * Set download data. * @param bytes * @return the download id * @throws DownloadException */ public static long setDownload( final byte [] bytes) throws DownloadException { return setDownload(bytes, null); }
/** * Set a download attribute for the download servlet. * @param name * @param value */ private static void setDownloadAttribute( final String name, final Object value) { ContextUtils.setGlobalSessionAttribute(name, value); }
/** * Set a global sesssion attribute. * @param name * @param value */ public static void setGlobalSessionAttribute( final String name, final Object value) { setContextAttribute(name, value, RequestAttributes.SCOPE_GLOBAL_SESSION); }
/** * @return a URL generator. */ public static UrlGenerator createUrlGenerator() { return (UrlGenerator) BeanUtilsWeb.getBean(URL_GENERATOR_BEAN); }
/** * Set download data. * @param file * @return the download id * @throws DownloadException */ public static long setDownload( final File file) throws DownloadException { return setDownload(file, null); }
/** * Set download data. * @param path * @return the download id * @throws DownloadException */ public static long setDownload( final String path) throws DownloadException { return setDownload(path, null); }
/** * Set download data. * @param path * @param contentType * @return the download id * @throws DownloadException */ public static long setDownload( final String path, final String contentType) throws DownloadException { return setDownload(path, contentType, null); }
/** * Set download data. * @param file * @param contentType * @return the download id * @throws DownloadException */ public static long setDownload( final File file, final String contentType) throws DownloadException { return setDownload(file, contentType, null); }
/** * Set download data. * @param path * @return the download id * @throws DownloadException */ public static long setDownload( final String path) throws DownloadException { return setDownload(path, null); }
/** * Set download data. * @param file * @param contentType * @return the download id * @throws DownloadException */ public static long setDownload( final File file, final String contentType) throws DownloadException { return setDownload(file, contentType, null); }