|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.webapps.session.components.DefaultMediaManager
This is the default implementation for the media manager
| Field Summary | |
protected org.apache.cocoon.webapps.session.components.PreparedMediaType[] |
allMediaTypes
The media Types |
protected Context |
context
The Context |
protected String |
defaultMediaType
The default media type (usually this is html) |
protected String[] |
mediaTypeNames
All media type names |
| Fields inherited from interface org.apache.cocoon.webapps.session.MediaManager |
ROLE |
| Constructor Summary | |
DefaultMediaManager()
|
|
| Method Summary | |
void |
configure(Configuration myConfiguration)
|
void |
contextualize(Context context)
|
String |
getMediaType()
Return the current media type |
String[] |
getMediaTypes()
Get all media type names |
boolean |
testMedia(String value)
Test if the media of the current request is the given value |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.cocoon.webapps.session.components.PreparedMediaType[] allMediaTypes
protected String defaultMediaType
protected String[] mediaTypeNames
protected Context context
| Constructor Detail |
public DefaultMediaManager()
| Method Detail |
public void contextualize(Context context)
throws ContextException
contextualize in interface ContextualizableContextException
public void configure(Configuration myConfiguration)
throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic boolean testMedia(String value)
testMedia in interface MediaManagerpublic String[] getMediaTypes()
MediaManager
getMediaTypes in interface MediaManagerpublic String getMediaType()
MediaManager
getMediaType in interface MediaManager
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||