KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > equinox > http > registry > HttpContextExtensionService


1 /*******************************************************************************
2  * Copyright (c) 2005-2007 Cognos Incorporated, IBM Corporation and others
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * Cognos Incorporated - initial API and implementation
10  * IBM Corporation - bug fixes and enhancements
11  *******************************************************************************/

12
13 package org.eclipse.equinox.http.registry;
14
15 import org.osgi.framework.ServiceReference;
16 import org.osgi.service.http.HttpContext;
17
18 /**
19  * The HttpContextExtensionService provides access to an HttpContext instance whose resources and implementation
20  * are added via the "httpcontexts" extension point.
21  */

22 public interface HttpContextExtensionService {
23     /**
24      * returns the HttpContext associated with the HttpService reference and http context name
25      *
26      * @param httpServiceReference The ServiceReference of the http service to which this HttpContext applies
27      * @param httpContextId The name of the HttpContext. Must be provided
28      *
29      * @return The HttpContext associated with the "id" and Http Service Reference; <code>null</code>
30      * if the HttpContext is unavailable.
31      */

32     public HttpContext getHttpContext(ServiceReference httpServiceReference, String JavaDoc httpContextId);
33 }
Popular Tags