org.apache.jetspeed.om.registry.base
Class BaseMimetypeMap

java.lang.Object
  extended byorg.apache.jetspeed.om.registry.base.BaseMimetypeMap
All Implemented Interfaces:
MimetypeMap, java.io.Serializable

public class BaseMimetypeMap
extends java.lang.Object
implements MimetypeMap, java.io.Serializable

Simple bean-like implementation of the CapabilityMap

Version:
$Id: BaseMimetypeMap.java,v 1.4 2005/03/21 18:21:37 sgala Exp $
Author:
Stephan Hesmer, Raphaël Luta
See Also:
Serialized Form

Constructor Summary
BaseMimetypeMap()
           
 
Method Summary
 void addMimetype(java.lang.String name)
          Adds the given mimetype
protected  void buildMimetable()
           
 boolean equals(java.lang.Object object)
          Implements the equals operation so that 2 elements are equal if all their member values are equal.
 java.util.Iterator getMimetypes()
          Returns an enumeration of all mimetypes the client supports.
 java.util.Vector getMimetypesVector()
           
 MimeType getPreferredMimetype()
          Returns the preferred mimetype of the client.
 void removeMimetype(java.lang.String name)
          Removes the given mimetype
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMimetypeMap

public BaseMimetypeMap()
Method Detail

equals

public boolean equals(java.lang.Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal.


getMimetypes

public java.util.Iterator getMimetypes()
Description copied from interface: MimetypeMap
Returns an enumeration of all mimetypes the client supports.

Specified by:
getMimetypes in interface MimetypeMap
Returns:
an enumeration of all mimetypes

getPreferredMimetype

public MimeType getPreferredMimetype()
Description copied from interface: MimetypeMap
Returns the preferred mimetype of the client.

Specified by:
getPreferredMimetype in interface MimetypeMap
Returns:
the preferred mimetype

addMimetype

public void addMimetype(java.lang.String name)
Description copied from interface: MimetypeMap
Adds the given mimetype

Specified by:
addMimetype in interface MimetypeMap
Parameters:
name - the name of the mimetype

removeMimetype

public void removeMimetype(java.lang.String name)
Description copied from interface: MimetypeMap
Removes the given mimetype

Specified by:
removeMimetype in interface MimetypeMap
Parameters:
name - the mimetype to be removed

buildMimetable

protected void buildMimetable()

getMimetypesVector

public java.util.Vector getMimetypesVector()


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.