org.norther.tammi.spray.servlet
Class DefaultServletMediaProvider
java.lang.Object
org.norther.tammi.core.base.Adaptee
org.norther.tammi.spray.media.DefaultMediaProvider
org.norther.tammi.spray.media.DefaultCachedMediaProvider
org.norther.tammi.spray.servlet.DefaultServletMediaProvider
- All Implemented Interfaces:
- Serializable, NotificationBroadcaster, NotificationEmitter, Manageable, MBeanDelegate, Refreshable, CacheClient, CachedMediaProvider, MediaProvider, ServletMediaProvider
public class DefaultServletMediaProvider
- extends DefaultCachedMediaProvider
- implements ServletMediaProvider
A default implementation of ServletMediaProvider.
- Author:
- Ilkka Priha
- See Also:
- Serialized Form
| Methods inherited from class org.norther.tammi.spray.media.DefaultCachedMediaProvider |
clearCached, expireCached, expireFraction, getCache, getCachedResource, getRefreshed, getResourceCacheName, isCachingDisabled, postmanaged, refresh, removeCache, removeCachedResource, setCachedResource, setCachedResource, setCachingDisabled, setResourceCacheName, unmanaged |
| Methods inherited from class org.norther.tammi.core.base.Adaptee |
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unregister |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultServletMediaProvider
public DefaultServletMediaProvider()
- Counstructs a new preovider.
getContextName
public ObjectName getContextName()
- Description copied from interface:
ServletMediaProvider
- Gets the startup context name.
- Specified by:
getContextName in interface ServletMediaProvider
- Returns:
- the name of the context or a query.
setContextName
public void setContextName(ObjectName name)
- Description copied from interface:
ServletMediaProvider
- Sets the startup context name.
- Specified by:
setContextName in interface ServletMediaProvider
- Parameters:
name - the name of the context or a query.
getResource
public Resource getResource(String path,
boolean cached,
ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ConstructionException,
AccessDeniedException
- Description copied from interface:
MediaProvider
- Gets the media content resource.
- Specified by:
getResource in interface MediaProvider- Overrides:
getResource in class DefaultCachedMediaProvider
- Parameters:
path - the content path.cached - true if caching is enabled, false otherwise.request - the servlet request.response - the servlet response.chain - the filter chain.
- Returns:
- the resource source.
- Throws:
IOException - on I/O errors.
ConstructionException - on resource errors.
AccessDeniedException - for access restrictions.
Copyright © 2004 The Norther Organization. All rights reserved.