Class ConfigurationLoader
- java.lang.Object
-
- org.wso2.carbon.inbound.endpoint.internal.http.api.ConfigurationLoader
-
public class ConfigurationLoader extends Object
ConfigurationLoader
contains utilities to load configuration file content required for Internal APIs implementation.
-
-
Constructor Summary
Constructors Constructor Description ConfigurationLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
destroy()
static List<InternalAPI>
getHttpInternalApis()
static List<InternalAPI>
getHttpsInternalApis()
static int
getInternalInboundHttpPort()
static int
getInternalInboundHttpsPort()
static org.apache.synapse.transport.passthru.core.ssl.SSLConfiguration
getSslConfiguration()
static boolean
isInternalApiEnabled()
Reads and check from the synapse properties file whether the Internal api is enabled.static boolean
isSslConfiguredSuccessfully()
static void
loadInternalApis(String apiFilePath)
-
-
-
Method Detail
-
loadInternalApis
public static void loadInternalApis(String apiFilePath)
-
getInternalInboundHttpPort
public static int getInternalInboundHttpPort()
-
getInternalInboundHttpsPort
public static int getInternalInboundHttpsPort()
-
getSslConfiguration
public static org.apache.synapse.transport.passthru.core.ssl.SSLConfiguration getSslConfiguration()
-
getHttpInternalApis
public static List<InternalAPI> getHttpInternalApis()
-
getHttpsInternalApis
public static List<InternalAPI> getHttpsInternalApis()
-
isSslConfiguredSuccessfully
public static boolean isSslConfiguredSuccessfully()
-
isInternalApiEnabled
public static boolean isInternalApiEnabled()
Reads and check from the synapse properties file whether the Internal api is enabled.- Returns:
- - whether internal api is enabled in synapse properties file.
-
destroy
public static void destroy()
-
-