com.ibm.xsp.webapp.resources
Class URLResourceProvider
java.lang.Object
com.ibm.xsp.webapp.resources.AbstractResourceProvider
com.ibm.xsp.webapp.resources.URLResourceProvider
- All Implemented Interfaces:
- ResourceProvider
- Direct Known Subclasses:
- BundleResourceProvider
public class URLResourceProvider
- extends AbstractResourceProvider
URL based resource provider.
Loads a resource from a URL.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLResourceProvider
public URLResourceProvider(java.lang.String prefix)
- Constructor
- Parameters:
prefix
- prefix for this resource provider to be identified
getExpireTime
protected long getExpireTime()
- Overrides:
getExpireTime
in class AbstractResourceProvider
addResource
public URLResourceProvider.URLResource addResource(java.lang.String resourceName,
java.net.URL url)
- Add url pointing to resource
- Parameters:
resourceName
- name of resource{@link
- java.net.URL} url of resource
getResource
public Resource getResource(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
- Description copied from interface:
ResourceProvider
- Return the resource object
- Parameters:
request
- request that is looking for resourcename
- name of the resource
getResourceURL
protected java.net.URL getResourceURL(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
- Not implemented
- Returns:
- null