1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.om.registry;
1819import java.util.Iterator;
20import org.apache.jetspeed.util.MimeType;
2122/***23 * <P>24 * The <CODE>MimeTypeMap</CODE> interface represents a list that25 * stores all mimetypes a client supports. The mimetypes are stored26 * in decreasing order of importance. The very first mimetype is the27 * preferred mimetype of the client.28 * </P>29 *30 * @author <a href="shesmer@raleigh.ibm.com">Stephan Hesmer</a>31 * @author <a href="raphael@apache.org">Raphaël Luta</a>32 * @version $Id: MimetypeMap.java,v 1.3 2004/02/23 03:11:39 jford Exp $33 */34publicinterfaceMimetypeMap35 {
3637/***38 * Returns an enumeration of all mimetypes the client supports.39 *40 * @return an enumeration of all mimetypes41 */42public Iterator getMimetypes();
4344/***45 * Returns the preferred mimetype of the client.46 *47 * @return the preferred mimetype48 */49publicMimeType getPreferredMimetype();
5051/***52 * Adds the given mimetype53 *54 * @param name the name of the mimetype55 */56publicvoid addMimetype(String name);
5758/***59 * Removes the given mimetype60 *61 * @param name the mimetype to be removed62 */63publicvoid removeMimetype(String name);
6465 }