com.bstek.dorado.view.resolver
public class PackageFileResolver extends WebFileResolver
Modifier and Type | Class and Description |
---|---|
static class |
PackageFileResolver.FileInfo |
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
I18N |
protected static java.lang.String |
I18N_FILE_SUFFIX |
protected static java.lang.String |
JAVASCRIPT_SUFFIX |
protected static java.lang.String |
LIBRARY_PACKAGE_SUFFIX |
protected static java.lang.String |
MIN_JAVASCRIPT_SUFFIX |
protected static java.lang.String |
MIN_STYLESHEET_SUFFIX |
protected static java.lang.String |
STYLESHEET_SUFFIX |
EMPTY_RESOURCES
Constructor and Description |
---|
PackageFileResolver() |
Modifier and Type | Method and Description |
---|---|
protected ResourcesWrapper |
createResourcesWrapper(javax.servlet.http.HttpServletRequest request,
DoradoContext context) |
protected Resource |
doGetI18NResource(DoradoContext context,
java.lang.String resourcePrefix,
java.lang.String fileName,
java.lang.String localeSuffix) |
protected Resource[] |
doGetResourcesByFileName(DoradoContext context,
java.lang.String resourcePrefix,
java.lang.String fileName,
java.lang.String resourceSuffix) |
protected Resource |
getI18NResource(DoradoContext context,
java.lang.String resourcePrefix,
java.lang.String fileName,
java.lang.String resourceSuffix,
java.util.Locale locale) |
protected Resource[] |
getI18NResources(DoradoContext context,
PackageFileResolver.FileInfo fileInfo,
java.lang.String resourcePrefix,
java.lang.String resourceSuffix) |
protected Resource[] |
getJavaScriptResources(DoradoContext context,
PackageFileResolver.FileInfo fileInfo,
java.lang.String resourcePrefix,
java.lang.String resourceSuffix) |
protected PackagesConfigManager |
getPackagesConfigManager()
返回资源包配置的管理器。
|
protected java.lang.String |
getResourceCacheKey(javax.servlet.http.HttpServletRequest request) |
protected Resource[] |
getResourcesByFileInfo(DoradoContext context,
PackageFileResolver.FileInfo fileInfo,
java.lang.String resourcePrefix,
java.lang.String resourceSuffix) |
protected Resource[] |
getStyleSheetResources(DoradoContext context,
PackageFileResolver.FileInfo fileInfo,
java.lang.String resourcePrefix,
java.lang.String resourceSuffix) |
void |
setClientI18NFileRegistry(ClientI18NFileRegistry clientI18NFileRegistry) |
void |
setDefaultLocale(java.util.Locale defaultLocale)
设置默认的国际化区域、语种。
|
void |
setLocaleResolver(LocaleResolver localeResolver)
设置用于确定国际化区域、语种信息的处理器。
|
getResourcePrefix, getResourcesByFileName, setBaseUri, setResourcePrefix
afterPropertiesSet, doHandleRequest, getContentType, getOutputStream, getResourceExtName, getResourcesWrapper, getResourceTypeManager, getUriSuffix, isCheckResourceType, isUseResourcesCache, outputFile, outputResourcesWrapper, setBeanFactory, setCheckResourceType, setUseResourcesCache, shouldCompress
getRelativeRequestURI, handleRequestInternal
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
protected static final java.lang.String I18N
protected static final java.lang.String I18N_FILE_SUFFIX
protected static final java.lang.String LIBRARY_PACKAGE_SUFFIX
protected static final java.lang.String JAVASCRIPT_SUFFIX
protected static final java.lang.String STYLESHEET_SUFFIX
protected static final java.lang.String MIN_JAVASCRIPT_SUFFIX
protected static final java.lang.String MIN_STYLESHEET_SUFFIX
public void setLocaleResolver(LocaleResolver localeResolver)
public void setDefaultLocale(java.util.Locale defaultLocale)
public void setClientI18NFileRegistry(ClientI18NFileRegistry clientI18NFileRegistry)
protected java.lang.String getResourceCacheKey(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
getResourceCacheKey
in class AbstractWebFileResolver
java.lang.Exception
protected PackagesConfigManager getPackagesConfigManager() throws java.lang.Exception
java.lang.Exception
protected ResourcesWrapper createResourcesWrapper(javax.servlet.http.HttpServletRequest request, DoradoContext context) throws java.lang.Exception
createResourcesWrapper
in class WebFileResolver
java.lang.Exception
protected Resource[] getResourcesByFileInfo(DoradoContext context, PackageFileResolver.FileInfo fileInfo, java.lang.String resourcePrefix, java.lang.String resourceSuffix) throws java.lang.Exception
java.lang.Exception
protected Resource[] doGetResourcesByFileName(DoradoContext context, java.lang.String resourcePrefix, java.lang.String fileName, java.lang.String resourceSuffix) throws java.lang.Exception
java.lang.Exception
protected Resource[] getI18NResources(DoradoContext context, PackageFileResolver.FileInfo fileInfo, java.lang.String resourcePrefix, java.lang.String resourceSuffix) throws java.lang.Exception
java.lang.Exception
protected final Resource getI18NResource(DoradoContext context, java.lang.String resourcePrefix, java.lang.String fileName, java.lang.String resourceSuffix, java.util.Locale locale) throws java.lang.Exception
java.lang.Exception
protected Resource doGetI18NResource(DoradoContext context, java.lang.String resourcePrefix, java.lang.String fileName, java.lang.String localeSuffix) throws java.lang.Exception, java.io.FileNotFoundException
java.lang.Exception
java.io.FileNotFoundException
protected Resource[] getJavaScriptResources(DoradoContext context, PackageFileResolver.FileInfo fileInfo, java.lang.String resourcePrefix, java.lang.String resourceSuffix) throws java.lang.Exception
java.lang.Exception
protected Resource[] getStyleSheetResources(DoradoContext context, PackageFileResolver.FileInfo fileInfo, java.lang.String resourcePrefix, java.lang.String resourceSuffix) throws java.lang.Exception
java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.