| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.equinox.http.registry"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.equinox.http.registry" id="httpcontexts" name="Http Service Httpcontexts"/> |
| </appInfo> |
| <documentation> |
| Provides an OSGi Http Service HttpContext identified by id. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="httpcontext" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="httpcontext"> |
| <annotation> |
| <appInfo> |
| <meta.element labelAttribute="id"/> |
| </appInfo> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="resource-mapping" minOccurs="0" maxOccurs="unbounded"/> |
| <element ref="mime-mapping" minOccurs="0" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The identifier associate with this httpcontext. Outside of this bundle it must be referred to by its full name including bundle namespace. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="class" type="string"> |
| <annotation> |
| <documentation> |
| The equivalent of the OSGi Http Services "httpcontext" in registerServlet and registerResource. The HttpContext is instantiated by the Extension Point provider and must be an instance of org.osgi.service.http.HttpContext. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn="org.osgi.service.http.HttpContext"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="mime-mapping"> |
| <annotation> |
| <appInfo> |
| <meta.element labelAttribute="extension"/> |
| </appInfo> |
| <documentation> |
| Similar to the Servlet Specification and its deployment descriptor's mime-mapping elements. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="extension" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The file extension to associate. For example: ps |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="mime-type" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The associated mime-type. For example: application/postscript |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="resource-mapping"> |
| <complexType> |
| <attribute name="path" type="string"> |
| <annotation> |
| <documentation> |
| The bundle path where resources can be loaded from. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="bundle" type="string"> |
| <annotation> |
| <documentation> |
| The bundle from where resources are loaded from. If the "bundle" attribute is not present the contributing bundle is used. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| 1.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| The following is an example of the <code>httpcontexts</code> extension: |
| <pre> |
| <extension |
| id="testHttpcontext" |
| point="org.eclipse.equinox.http.registry.httpcontexts"> |
| <httpcontext |
| id="testintest"> |
| <resource-mapping path="/test"/> |
| </httpcontext> |
| </extension> |
| </pre> |
| |
| This httpcontexts extension will make resources from "/test" in the contributing bundle accessible via the OSGi Http Service's HttpContext getResource method. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| The httpcontext class must be an instance of org.osgi.service.http.HttpContext. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2005-2007 Cognos Incorporated, IBM Corporation and others |
| <br> |
| |
| This program and the accompanying materials are made |
| available under the terms of the Eclipse Public License 2.0 which |
| accompanies this distribution, and is available at |
| <a href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-v20.html</a>/ |
| |
| SPDX-License-Identifier: EPL-2.0. |
| <br> |
| Contributors:<br> |
| Cognos Incorporated - initial API and implementation<br> |
| IBM Corporation - bug fixes and enhancements<br> |
| </documentation> |
| </annotation> |
| |
| </schema> |