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)
根据资源路径获取相应的资源描述对象的数组。
此处的资源路径可支持通配符,因此可以返回一个以上的资源描述对象。 |
transformLocation
getClassLoader, getResourcesBySinglePattern
public ServletContextResourceLoader(javax.servlet.ServletContext servletContext)
protected org.springframework.core.io.ResourceLoader getAdaptee()
SpringResourceLoaderAdapter
getAdaptee
in class BaseResourceLoader
public Resource getResource(java.lang.String resourceLocation)
ResourceLoader
getResource
in interface ResourceLoader
getResource
in class SpringResourceLoaderAdapter
resourceLocation
- 资源路径Resource
,
ResourceLoader
public Resource[] getResources(java.lang.String locationPattern) throws java.io.IOException
ResourceLoader
getResources
in interface ResourceLoader
getResources
in class SpringResourceLoaderAdapter
locationPattern
- 资源路径(可支持通配符)java.io.IOException
Resource
,
ResourceLoader
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.