blob: f09e8c580bebc34173777b64cd4352bdbe8f2667 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*******************************************************************************
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Cognos Incorporated - initial API and implementation
* IBM Corporation - bug fixes and enhancements
*******************************************************************************/
package org.eclipse.equinox.http.registry;
import org.osgi.framework.ServiceReference;
import org.osgi.service.http.HttpContext;
/**
* The HttpContextExtensionService provides access to an HttpContext instance whose resources and implementation
* are added via the "httpcontexts" extension point.
*/
public interface HttpContextExtensionService {
/**
* returns the HttpContext associated with the HttpService reference and http context name
*
* @param httpServiceReference The ServiceReference of the http service to which this HttpContext applies
* @param httpContextId The name of the HttpContext. Must be provided
*
* @return The HttpContext associated with the "id" and Http Service Reference; <code>null</code>
* if the HttpContext is unavailable.
*/
public HttpContext getHttpContext(ServiceReference httpServiceReference, String httpContextId);
}
|