Package org.openhab.core.net
Class HttpServiceUtil
java.lang.Object
org.openhab.core.net.HttpServiceUtil
Some utility functions related to the http service
- Author:
- Markus Rathgeb - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getHttpServicePort
(org.osgi.framework.BundleContext bc) Get the port that is used by the HTTP service.static int
getHttpServicePortSecure
(org.osgi.framework.BundleContext bc)
-
Method Details
-
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)
-