<!ELEMENT extension (serviceSelector? , servlet+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT servlet (init-param*)>
<!ATTLIST servlet
class CDATA #REQUIRED
alias CDATA #REQUIRED
httpcontextId CDATA #IMPLIED
load-on-startup (true | false) >
<!ELEMENT init-param EMPTY>
<!ATTLIST init-param
name CDATA #REQUIRED
value CDATA #REQUIRED>
Similar to the Servlet Specification and its deployment descriptor's init-param elements.
<!ELEMENT serviceSelector EMPTY>
<!ATTLIST serviceSelector
filter CDATA #IMPLIED
class CDATA #IMPLIED>
servlets
extension:
<extension id="testServlet" point="org.eclipse.equinox.http.registry.servlets"> <servlet alias="/sp_test" class="org.eclipse.equinox.http.registry.internal.TestServlet"> <init-param name="testParam" value="test param value"> </init-param> </servlet> </extension>This equivalent to the OSGi Http Service's registerServlet 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