Http Service Resources
Identifier:
org.eclipse.equinox.http.registry.resources
Since:
1.0
Description:
This extension mimics and borrows the semantics of the OSGi HttpService registerResource method.
Configuration Markup:
<!ELEMENT extension (
serviceSelector? ,
resource+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
>
<!ELEMENT resource EMPTY>
<!ATTLIST resource
alias CDATA #REQUIRED
base-name CDATA #IMPLIED
httpcontextId CDATA #IMPLIED
>
-
alias - The equivalent of the OSGi Http Services "alias" in registerResource.
-
base-name - The equivalent of the OSGi Http Services "name" in registerResource.
-
httpcontextId - The equivalent of the OSGi Http Services httpcontext in registerResource. The httpcontextId is matched against the "httpcontexts" extension for a matching id. If this attribute is not provided the OSGi Http Service's DefaultHttpContext semantics are used.
<!ELEMENT serviceSelector EMPTY>
<!ATTLIST serviceSelector
filter CDATA #IMPLIED
class CDATA #IMPLIED
>
The serviceSelector allow filtering of the HttpService instances with which to register resources
-
filter - The serviceSelector allow filtering of the HttpService instances with which to register resources.
-
class - If used the class must be an instance of org.osgi.framework.Filter
Examples:
The following is an example of the
resources
extension:
<extension
id=
"testResource"
point=
"org.eclipse.equinox.http.registry.resources"
>
<resource
alias=
"/testresource"
base-name=
"/test"
httpcontextId=
"testintest"
/>
</extension>
This equivalent to the OSGi Http Service's registerResource method.
Copyright (c) 2005-2007 Cognos Incorporated, IBM Corporation and others
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which
accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-v10.html.
Contributors:
Cognos Incorporated - initial API and implementation
IBM Corporation - bug fixes and enhancements