OSGi Service Platform
Service Compendium
The OSGi Alliance
Release 4
August 2005
OSGi
Alliance
Digitally signed
by OSGi Alliance
DN: cn=OSGi
Alliance, c=US
Date:
2005.08.15
18:20:46 +02'00'
Signature
Not Verified
i-432 OSGi Service Platform Release 4
Copyright © 2005, 2000 OSGi Alliance
All Rights Reserved
OSGi Specification License, Version 1.0
The OSGi Alliance (“OSGi Alliance”) hereby grants you a fully-paid, non-exclusive,
non-transferable, worldwide, limited license (without the right to sublicense), under
the OSGi Alliance's applicable intellectual property rights to view, download, and
reproduce the OSGi Specification (“Specification”) which follows this License
Agreement (“Agreement”). You are not authorized to create any derivative work of the
Specification. The OSGi Alliance also grants you a perpetual, non-exclusive,
worldwide, fully paid-up, royalty free, limited license (without the right to sublicense)
under any applicable copyrights, to create and/or distribute an implementation of the
Specification that: (i) fully implements the Specification including all its required
interfaces and functionality; (ii) does not modify, subset, superset or otherwise extend
the OSGi Name Space, or include any public or protected packages, classes, Java
interfaces, fields or methods within the OSGi Name Space other than those required
and authorized by the Specification. An implementation that does not satisfy
limitations (i)-(ii) is not considered an implementation of the Specification, does not
receive the benefits of this license, and must not be described as an implementation of
the Specification. An implementation of the Specification must not claim to be a
compliant implementation of the Specification unless it passes the OSGi Alliance
Compliance Tests for the Specification in accordance with OSGi Alliance processes.
“OSGi Name Space” shall mean the public class or interface declarations whose names
begin with “org.osgi” or any recognized successors or replacements thereof.
THE SPECIFICATION IS PROVIDED “AS IS,” AND THE OSGi ALLIANCE, ITS
MEMBERS AND ANY OTHER AUTHORS MAKE NO REPRESENTATIONS OR
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE SPECIFICATION
ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH
CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
TRADEMARKS OR OTHER RIGHTS. THE OSGi ALLIANCE, ITS MEMBERS AND ANY
OTHER AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE
SPECIFICATION OR THE PERFORMANCE OR IMPLEMENTATION OF THE
CONTENTS THEREOF.
The name and trademarks of the OSGi Alliance or any other Authors may NOT be used
in any manner, including advertising or publicity pertaining to the Specification or its
contents without specific, written prior permission. Title to copyright in the
Specification will at all times remain with the Authors.
No other rights are granted by implication, estoppel or otherwise.
Trademarks
OSGi™ is a trademark, registered trademark, or service mark of the OSGi
Alliance in the US and other countries. Java is a trademark, registered trade-
mark, or service mark of Sun Microsystems, Inc. in the US and other coun-
tries. All other trademarks, registered trademarks, or service marks used in
this document are the property of their respective owners and are hereby
recognized.
Feedback
This specification can be downloaded from the OSGi web site:
http://www.osgi.org
Comments about this specification can be mailed to:
speccomments@mail.osgi.org
OSGi Service Platform Release 4 ii-432
OSGi Member Companies
Alpine Electronics Europe Gmbh, Aplix Corporation, Belgacom, BMW
Group, Cablevision Systems, Computer Associates, Deutsche Telekom AG,
Echelon Corporation, Electricité de France (EDF), Ericsson Mobile Platforms
AB, Esmertec, Espial Group, Inc., ETRI Electronics and Telecommunications
Research Institute, France Telecom, Gatespace Telematics AB, Gemplus,
Harman/Becker Automotive Systems GmbH, Hitachi, Ltd., IBM
Corporation, Industrial Technology Research Institute, Insignia Solutions,
Intel Corporation, KDDI R&D Laboratories, Inc., KT Corporation,
Mitsubishi Electric Corporation, Motorola, Inc., NEC Corporation, Nokia
Corporation, NTT, Oracle Corporation, Panasonic Technologies, Inc., Philips
Consumer Electronics, ProSyst Software GmbH, Robert Bosch Gmbh,
Samsung Electronics Co., Ltd., SavaJe Technologies, Inc., Sharp Corporation,
Siemens AG, Sun Microsystems, Inc., Telcordia Technologies, Inc.,
Telefonica I+D, TeliaSonera, Toshiba Corporation, Vodafone Group Services
Limited
iii-432 OSGi Service Platform Release 4
OSGi Board of Directors and Officers
Director,
VP Americas
Dan Bandera Program Director, WebSphere Standards,
IBM Corporation
Director,
President
John R. Barr Director, Standards Realization, Corporate
Offices,
Motorola, Inc.
Director Hans-Werner Bitzer Head of Section Smart Home Solutions,
Deutsche Telekom AG
Director Jon Bostrom Chief Java Architect,
Nokia Corporation
CTO, CPEG chair,
OSGi Fellow
BJ Hargrave Senior Software Engineer,
IBM Corporation
Executive Director Deepak Kamlani CEO, Founder,
Global Inventures, Inc.
Director Ryutaro Kawamura Senior Manager,
NTT
Director Chung-Kon Ko Vice President,
Samsung Electronics Co., Ltd.
Technical Director,
Editor, OSGi Fellow
Peter Kriens Managing Director,
aQute
Director Andre Kruetzfeldt Principal Architect,
Sun Microsystems, Inc.
Director,
Treasurer
Jeff Lund Vice President, Business Development & Corpo-
rate Marketing,
Echelon Corporation
Director, VP Europe,
Middle East and Africa
Daniel Meirsman Principal Technology Strategist,
Philips Consumer Electronics
Director Hans-Ulrich Michel Project Manager Information, Communication
and Telematics,
BMW
Director,
Secretary
Stan Moyer Executive Director, Strategic Research Program,
Telcordia Technologies, Inc.
Director Olivier Pavé Software Architect,
Siemens AG
Director,
VP Marketing
Susan Schwarze Marketing Director,
ProSyst Software GmbH
VP Asia Pacific Jae Gun (JG) Wee Korea Rep. Director of Echelon APJ,
Echelon Corporation
OSGi Service Platform Release 4 iv-432
1Introduction 1
1.1 Reader Level ............................................................................................................ 1
1.2 Version Information ................................................................................................ 1
1.3 References ...............................................................................................................2
101 Log Service Specification 3
101.1 Introduction............................................................................................................. 3
101.2 The Log Service Interface........................................................................................4
101.3 Log Level and Error Severity ................................................................................... 5
101.4 Log Reader Service ..................................................................................................6
101.5 Log Entry Interface ..................................................................................................6
101.6 Mapping of Events................................................................................................... 7
101.7 Security ...................................................................................................................8
101.8 Changes ...................................................................................................................9
101.9 org.osgi.service.log .................................................................................................9
102 Http Service Specification 15
102.1 Introduction........................................................................................................... 15
102.2 Registering Servlets .............................................................................................. 16
102.3 Registering Resources ........................................................................................... 18
102.4 Mapping HTTP Requests to Servlet and Resource Registrations .........................20
102.5 The Default Http Context Object ......................................................................... 21
102.6 Multipurpose Internet Mail Extension (MIME) Types...........................................22
102.7 Authentication.......................................................................................................23
102.8 Security .................................................................................................................25
102.9 Configuration Properties.......................................................................................26
102.10 Changes .................................................................................................................26
102.11 org.osgi.service.http .............................................................................................26
102.12 References .............................................................................................................32
103 Device Access Specification 33
103.1 Introduction........................................................................................................... 33
103.2 Device Services ..................................................................................................... 35
103.3 Device Category Specifications ............................................................................38
103.4 Driver Services ......................................................................................................40
103.5 Driver Locator Service...........................................................................................47
103.6 The Driver Selector Service ..................................................................................49
103.7 Device Manager ....................................................................................................50
103.8 Security .................................................................................................................56
Table Of Contents
- 1
- 2
前往页