|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.webapp.resources.AbstractResourceProvider com.ibm.xsp.webapp.resources.URLResourceProvider com.ibm.xsp.webapp.resources.BundleResourceProvider
public class BundleResourceProvider
OSGi bundle resource provider. Loads a resource from an OSGI bundle.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.xsp.webapp.resources.URLResourceProvider |
---|
URLResourceProvider.URLResource |
Nested classes/interfaces inherited from class com.ibm.xsp.webapp.resources.AbstractResourceProvider |
---|
AbstractResourceProvider.AbstractResource, AbstractResourceProvider.FileResource |
Field Summary |
---|
Fields inherited from class com.ibm.xsp.webapp.resources.AbstractResourceProvider |
---|
GZIP_EXCLUDE, MIN_GZIP_SIZE |
Fields inherited from interface com.ibm.xsp.webapp.resources.ResourceProvider |
---|
DEFAULT_ENCODING, DEFAULT_GLOBAL_EXPIRES, DEFAULT_MODULE_EXPIRES, EXPIRES, IF_MODIFIED_SINCE, LAST_MODIFIED, PARAM_CACHE |
Constructor Summary | |
---|---|
BundleResourceProvider(org.osgi.framework.Bundle bundle,
java.lang.String prefix)
Constructor |
Method Summary | |
---|---|
org.osgi.framework.Bundle |
getBundle()
Returns the bundle that is linked to the resource provider |
protected java.net.URL |
getResourceURL(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Returns a URL to the bundle linked to the resource provider |
Methods inherited from class com.ibm.xsp.webapp.resources.URLResourceProvider |
---|
addResource, getExpireTime, getResource |
Methods inherited from class com.ibm.xsp.webapp.resources.AbstractResourceProvider |
---|
getMimeType, isHttpCache, shouldCacheResources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BundleResourceProvider(org.osgi.framework.Bundle bundle, java.lang.String prefix)
{@link
- org.osgi.framework.Bundle} bundle you are loading resources fromprefix
- prefix for this resource provider to be identifiedMethod Detail |
---|
public org.osgi.framework.Bundle getBundle()
Bundle
protected java.net.URL getResourceURL(javax.servlet.http.HttpServletRequest request, java.lang.String name)
getResourceURL
in class URLResourceProvider
URL
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |