Class ConfigurationLoader


  • public class ConfigurationLoader
    extends Object
    ConfigurationLoader contains utilities to load configuration file content required for Internal APIs implementation.
    • Constructor Detail

      • ConfigurationLoader

        public ConfigurationLoader()
    • 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()