Class ConfigurationLoader
- java.lang.Object
-
- org.wso2.carbon.inbound.endpoint.internal.http.api.ConfigurationLoader
-
public class ConfigurationLoader extends Object
ConfigurationLoadercontains 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 voiddestroy()static List<InternalAPI>getHttpInternalApis()static List<InternalAPI>getHttpsInternalApis()static intgetInternalInboundHttpPort()static intgetInternalInboundHttpsPort()static org.apache.synapse.transport.passthru.core.ssl.SSLConfigurationgetSslConfiguration()static booleanisInternalApiEnabled()Reads and check from the synapse properties file whether the Internal api is enabled.static booleanisSslConfiguredSuccessfully()static voidloadInternalApis(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()
-
-