Interface HttpContextExtensionService


  • public interface HttpContextExtensionService
    The HttpContextExtensionService provides access to an HttpContext instance whose resources and implementation are added via the "httpcontexts" extension point.
    Restriction:
    This interface is not intended to be implemented by clients.
    Restriction:
    This interface is not intended to be extended by clients.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.osgi.service.http.HttpContext getHttpContext​(org.osgi.framework.ServiceReference<org.osgi.service.http.HttpService> httpServiceReference, java.lang.String httpContextId)
      returns the HttpContext associated with the HttpService reference and http context name
    • Method Detail

      • getHttpContext

        org.osgi.service.http.HttpContext getHttpContext​(org.osgi.framework.ServiceReference<org.osgi.service.http.HttpService> httpServiceReference,
                                                         java.lang.String httpContextId)
        returns the HttpContext associated with the HttpService reference and http context name
        Parameters:
        httpServiceReference - The ServiceReference of the http service to which this HttpContext applies
        httpContextId - The name of the HttpContext. Must be provided
        Returns:
        The HttpContext associated with the "id" and Http Service Reference; null if the HttpContext is unavailable.