org.apache.cocoon.webapps.session.components
Class DefaultMediaManager

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.webapps.session.components.DefaultMediaManager
All Implemented Interfaces:
Component, Configurable, Contextualizable, LogEnabled, ThreadSafe, MediaManager

Deprecated. This block is deprecated and will be removed in future versions.

public final class DefaultMediaManager
extends AbstractLogEnabled
implements MediaManager, Configurable, ThreadSafe, Contextualizable, Component

This is the default implementation for the media manager

Version:
CVS $Id: DefaultMediaManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
protected  org.apache.cocoon.webapps.session.components.PreparedMediaType[] allMediaTypes
          Deprecated. The media Types
protected  Context context
          Deprecated. The Context
protected  String defaultMediaType
          Deprecated. The default media type (usually this is html)
protected  String[] mediaTypeNames
          Deprecated. All media type names
 
Fields inherited from interface org.apache.cocoon.webapps.session.MediaManager
ROLE
 
Constructor Summary
DefaultMediaManager()
          Deprecated.  
 
Method Summary
 void configure(Configuration myConfiguration)
          Deprecated.  
 void contextualize(Context context)
          Deprecated.  
 String getMediaType()
          Deprecated. Return the current media type
 String[] getMediaTypes()
          Deprecated. Get all media type names
 boolean testMedia(String value)
          Deprecated. 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

allMediaTypes

protected org.apache.cocoon.webapps.session.components.PreparedMediaType[] allMediaTypes
Deprecated. 
The media Types


defaultMediaType

protected String defaultMediaType
Deprecated. 
The default media type (usually this is html)


mediaTypeNames

protected String[] mediaTypeNames
Deprecated. 
All media type names


context

protected Context context
Deprecated. 
The Context

Constructor Detail

DefaultMediaManager

public DefaultMediaManager()
Deprecated. 
Method Detail

contextualize

public void contextualize(Context context)
                   throws ContextException
Deprecated. 
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException

configure

public void configure(Configuration myConfiguration)
               throws ConfigurationException
Deprecated. 
Specified by:
configure in interface Configurable
Throws:
ConfigurationException

testMedia

public boolean testMedia(String value)
Deprecated. 
Test if the media of the current request is the given value

Specified by:
testMedia in interface MediaManager

getMediaTypes

public String[] getMediaTypes()
Deprecated. 
Description copied from interface: MediaManager
Get all media type names

Specified by:
getMediaTypes in interface MediaManager

getMediaType

public String getMediaType()
Deprecated. 
Description copied from interface: MediaManager
Return the current media type

Specified by:
getMediaType in interface MediaManager


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.