Class ConfigurationLoader
java.lang.Object
org.wso2.carbon.inbound.endpoint.internal.http.api.ConfigurationLoader
ConfigurationLoader contains utilities to load configuration file content required for Internal APIs
implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddestroy()static List<InternalAPI> static List<InternalAPI> static intstatic intstatic org.apache.synapse.transport.passthru.core.ssl.SSLConfigurationstatic booleanReads and check from the synapse properties file whether the Internal api is enabled.static booleanstatic voidloadInternalApis(String apiFilePath)
-
Constructor Details
-
ConfigurationLoader
public ConfigurationLoader()
-
-
Method Details
-
loadInternalApis
-
getInternalInboundHttpPort
public static int getInternalInboundHttpPort() -
getInternalInboundHttpsPort
public static int getInternalInboundHttpsPort() -
getSslConfiguration
public static org.apache.synapse.transport.passthru.core.ssl.SSLConfiguration getSslConfiguration() -
getHttpInternalApis
-
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()
-