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 Details

    • ConfigurationLoader

      public ConfigurationLoader()
  • Method Details

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