Class HttpServiceUtil


  • @NonNullByDefault
    public class HttpServiceUtil
    extends Object
    Some utility functions related to the http service
    Author:
    Markus Rathgeb - Initial contribution
    • Method Detail

      • getHttpServicePort

        public static int getHttpServicePort​(org.osgi.framework.BundleContext bc)
        Get the port that is used by the HTTP service.
        Parameters:
        bc - the bundle context used for lookup
        Returns:
        the port if used, -1 if no port could be found
      • getHttpServicePortSecure

        public static int getHttpServicePortSecure​(org.osgi.framework.BundleContext bc)