blob: 522c1b89d2be6bef556fff4fa1e43de51128203a [file] [log] [blame]
Richard S. Hall2532cf82010-03-24 09:51:11 +00001/*
Carsten Ziegeler3314f912014-07-30 07:22:32 +00002 * Copyright (c) OSGi Alliance (2002, 2013). All Rights Reserved.
Richard S. Hall2532cf82010-03-24 09:51:11 +00003 *
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
17package org.osgi.service.url;
18
Carsten Ziegeler3314f912014-07-30 07:22:32 +000019import org.osgi.annotation.versioning.ProviderType;
20
Richard S. Hall2532cf82010-03-24 09:51:11 +000021/**
22 * Defines standard names for property keys associated with
Richard S. Halldfd78a42012-05-11 20:19:02 +000023 * {@link URLStreamHandlerService} and {@code java.net.ContentHandler} services.
Richard S. Hall2532cf82010-03-24 09:51:11 +000024 *
25 * <p>
Richard S. Halldfd78a42012-05-11 20:19:02 +000026 * The values associated with these keys are of type {@code java.lang.String[]}
27 * or {@code java.lang.String}, unless otherwise indicated.
Richard S. Hall2532cf82010-03-24 09:51:11 +000028 *
Carsten Ziegeler3314f912014-07-30 07:22:32 +000029 * @author $Id: 490baaad326523bcb3915ef04572d3c28560db0b $
Richard S. Hall2532cf82010-03-24 09:51:11 +000030 */
Carsten Ziegeler3314f912014-07-30 07:22:32 +000031@ProviderType
Richard S. Hall2532cf82010-03-24 09:51:11 +000032public 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}