<!ELEMENT extension (httpcontext+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT httpcontext (resource-mapping* , mime-mapping*)>
<!ATTLIST httpcontext
id CDATA #REQUIRED
class CDATA #IMPLIED>
<!ELEMENT mime-mapping EMPTY>
<!ATTLIST mime-mapping
extension CDATA #REQUIRED
mime-type CDATA #REQUIRED>
Similar to the Servlet Specification and its deployment descriptor's mime-mapping elements.
<!ELEMENT resource-mapping EMPTY>
<!ATTLIST resource-mapping
path CDATA #IMPLIED
bundle CDATA #IMPLIED>
httpcontexts
extension:
<extension id="testHttpcontext" point="org.eclipse.equinox.http.registry.httpcontexts"> <httpcontext id="testintest"> <resource-mapping path="/test"/> </httpcontext> </extension>This httpcontexts extension will make resources from "/test" in the contributing bundle accessible via the OSGi Http Service's HttpContext getResource method.
Copyright (c) 2005-2007 Cognos Incorporated, IBM Corporation and others
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
https://www.eclipse.org/legal/epl-v20.html/
SPDX-License-Identifier: EPL-2.0.
Contributors:
Cognos Incorporated - initial API and implementation
IBM Corporation - bug fixes and enhancements