|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.spray.media.DefaultMediaProvider
public class DefaultMediaProvider
A default implementation of MediaProvider.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.base.Adaptee |
|---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
DefaultMediaProvider()
Constructs a new provider. |
|
| Method Summary | |
|---|---|
String |
getDefaultIndex()
Gets the default index file. |
protected String |
getDefaultIndex(ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the default index with the terminal extension. |
String |
getMediaKey()
Gets the path finder key for resolving media paths. |
Resource |
getResource(String path,
boolean cached,
ServletRequest request,
ServletResponse response,
FilterChain chain)
Gets the media content resource. |
boolean |
isLocalizedContent()
Gets the localized content flag. |
void |
setDefaultIndex(String index)
Sets the default index file. |
void |
setLocalizedContent(boolean flag)
Sets the localized content flag. |
void |
setMediaKey(String key)
Sets the path finder key for resolving media paths. |
| 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, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unmanaged, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMediaProvider()
| Method Detail |
|---|
public String getMediaKey()
MediaProvider
getMediaKey in interface MediaProviderpublic void setMediaKey(String key)
MediaProvider
setMediaKey in interface MediaProviderkey - the path finder key.public String getDefaultIndex()
MediaProvider
getDefaultIndex in interface MediaProviderpublic void setDefaultIndex(String index)
MediaProvider
setDefaultIndex in interface MediaProviderindex - a default index file.public boolean isLocalizedContent()
MediaProvider
isLocalizedContent in interface MediaProviderpublic void setLocalizedContent(boolean flag)
MediaProvider
setLocalizedContent in interface MediaProviderflag - the localized content flag.
public Resource getResource(String path,
boolean cached,
ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ConstructionException,
AccessDeniedException
MediaProvider
getResource in interface MediaProviderpath - the content path.cached - true if caching is enabled, false otherwise.request - the servlet request.response - the servlet response.chain - the filter chain.
IOException - on I/O errors.
ConstructionException - on resource errors.
AccessDeniedException - for access restrictions.
protected String getDefaultIndex(ServletRequest request,
ServletResponse response,
FilterChain chain)
request - the request.response - the response.chain - the filter chain.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||