Richard S. Hall | 2532cf8 | 2010-03-24 09:51:11 +0000 | [diff] [blame] | 1 | /* |
Carsten Ziegeler | 3314f91 | 2014-07-30 07:22:32 +0000 | [diff] [blame^] | 2 | * Copyright (c) OSGi Alliance (2002, 2013). All Rights Reserved. |
Richard S. Hall | 2532cf8 | 2010-03-24 09:51:11 +0000 | [diff] [blame] | 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 at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * 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 and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.osgi.service.url; |
| 18 | |
Carsten Ziegeler | 3314f91 | 2014-07-30 07:22:32 +0000 | [diff] [blame^] | 19 | import org.osgi.annotation.versioning.ProviderType; |
| 20 | |
Richard S. Hall | 2532cf8 | 2010-03-24 09:51:11 +0000 | [diff] [blame] | 21 | /** |
| 22 | * Defines standard names for property keys associated with |
Richard S. Hall | dfd78a4 | 2012-05-11 20:19:02 +0000 | [diff] [blame] | 23 | * {@link URLStreamHandlerService} and {@code java.net.ContentHandler} services. |
Richard S. Hall | 2532cf8 | 2010-03-24 09:51:11 +0000 | [diff] [blame] | 24 | * |
| 25 | * <p> |
Richard S. Hall | dfd78a4 | 2012-05-11 20:19:02 +0000 | [diff] [blame] | 26 | * The values associated with these keys are of type {@code java.lang.String[]} |
| 27 | * or {@code java.lang.String}, unless otherwise indicated. |
Richard S. Hall | 2532cf8 | 2010-03-24 09:51:11 +0000 | [diff] [blame] | 28 | * |
Carsten Ziegeler | 3314f91 | 2014-07-30 07:22:32 +0000 | [diff] [blame^] | 29 | * @author $Id: 490baaad326523bcb3915ef04572d3c28560db0b $ |
Richard S. Hall | 2532cf8 | 2010-03-24 09:51:11 +0000 | [diff] [blame] | 30 | */ |
Carsten Ziegeler | 3314f91 | 2014-07-30 07:22:32 +0000 | [diff] [blame^] | 31 | @ProviderType |
Richard S. Hall | 2532cf8 | 2010-03-24 09:51:11 +0000 | [diff] [blame] | 32 | public interface URLConstants { |
| 33 | /** |
| 34 | * Service property naming the protocols serviced by a |
| 35 | * URLStreamHandlerService. The property's value is a protocol name or an |
| 36 | * array of protocol names. |
| 37 | */ |
| 38 | public static final String URL_HANDLER_PROTOCOL = "url.handler.protocol"; |
| 39 | /** |
| 40 | * Service property naming the MIME types serviced by a |
| 41 | * java.net.ContentHandler. The property's value is a MIME type or an array |
| 42 | * of MIME types. |
| 43 | */ |
| 44 | public static final String URL_CONTENT_MIMETYPE = "url.content.mimetype"; |
| 45 | } |