com.bstek.dorado.web.servlet
public class ServletContextResourceLoader extends BaseResourceLoader
CLASSPATH_LOCATION_PREFIX, LOCATION_SEPARATOR, PROTOCOL_SEPARATOR, WEBINF_LOCATION_PREFIX| Constructor and Description |
|---|
ServletContextResourceLoader(javax.servlet.ServletContext servletContext) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.core.io.ResourceLoader |
getAdaptee()
返回被代理的Spring的Resource对象。
|
Resource |
getResource(java.lang.String resourceLocation)
根据资源路径获取相应的资源描述对象。
|
Resource[] |
getResources(java.lang.String locationPattern)
根据资源路径获取相应的资源描述对象的数组。
此处的资源路径可支持通配符,因此可以返回一个以上的资源描述对象。 |
transformLocationgetClassLoader, getResourcesBySinglePatternpublic ServletContextResourceLoader(javax.servlet.ServletContext servletContext)
protected org.springframework.core.io.ResourceLoader getAdaptee()
SpringResourceLoaderAdaptergetAdaptee in class BaseResourceLoaderpublic Resource getResource(java.lang.String resourceLocation)
ResourceLoadergetResource in interface ResourceLoadergetResource in class SpringResourceLoaderAdapterresourceLocation - 资源路径Resource,
ResourceLoaderpublic Resource[] getResources(java.lang.String locationPattern) throws java.io.IOException
ResourceLoadergetResources in interface ResourceLoadergetResources in class SpringResourceLoaderAdapterlocationPattern - 资源路径(可支持通配符)java.io.IOExceptionResource,
ResourceLoaderCopyright © 2001-2011 www.BSTEK.com All Rights Reserved.