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;
1819/***20 * This entry describes all the properties that should be present in21 * a RegistryEntry describing a MediaType22 *23 * FIXME: we should add some additionnal attrbutes for separating 2 versions24 * of the same mime type25 *26 * @author <a href="mailto:raphael@apache.org">Raphaël Luta</a>27 * @version $Id: MediaTypeEntry.java,v 1.4 2004/02/23 03:11:39 jford Exp $28 */29publicinterfaceMediaTypeEntryextendsRegistryEntry30 {
3132/*** @return the mime type associated with this MediaType */33public String getMimeType();
3435/*** Sets the MimeType associated with this MediaType36 * @param mimeType the MIME type to associate37 */38publicvoid setMimeType( String mimeType );
3940/*** @return the character set associated with this MediaType */41public String getCharacterSet();
4243/*** Sets the character set associated with this MediaType */44publicvoid setCharacterSet( String charSet);
4546/***47 * Returns all supported capablities as <CODE>CapabilityMap</CODE>.48 * The <CODE>CapabilityMap</CODE> contains all capabilities in arbitrary49 * order.50 *51 * @return the CapabilityMap52 * @see CapabilityMap53 */54publicCapabilityMap getCapabilityMap();
55 }