1 /* 2 * $Header: /cvshome/build/org.osgi.service.url/src/org/osgi/service/url/URLConstants.java,v 1.10 2006/12/01 06:38:45 hargrave Exp $ 3 * 4 * Copyright (c) OSGi Alliance (2002, 2006). All Rights Reserved. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 package org.osgi.service.url; 20 21 /** 22 * Defines standard names for property keys associated with 23 * {@link URLStreamHandlerService} and <code>java.net.ContentHandler</code> 24 * services. 25 * 26 * <p> 27 * The values associated with these keys are of type <code>java.lang.String[]</code> 28 * or <code>java.lang.String</code>, 29 * unless otherwise indicated. 30 * 31 * @version $Revision: 1.10 $ 32 */ 33 public interface URLConstants { 34 /** 35 * Service property naming the protocols serviced by a 36 * URLStreamHandlerService. The property's value is 37 * a protocol name or an array of protocol names. 38 */ 39 public static final String URL_HANDLER_PROTOCOL = "url.handler.protocol"; 40 /** 41 * Service property naming the MIME types serviced by a 42 * java.net.ContentHandler. The property's value is a 43 * MIME type or an array of MIME types. 44 */ 45 public static final String URL_CONTENT_MIMETYPE = "url.content.mimetype"; 46 } 47