Class WebServers


  • public final class WebServers
    extends Object
    Web servers installations and publications utility methods.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Method Detail

      • equals

        public static boolean equals​(WebServer first,
                                     WebServer second)
        Determines whether two possibly-null web servers are equal. Returns:
        • true if first and second are both null.
        • true if first and second are both non-null and they have same name.
        • false in all other situations.
        Parameters:
        first - the fist web server to check equality
        second - the second web server to check equality
        Returns:
        whether two possibly-null web servers are equal
      • findByName

        public static WebServer findByName​(String name,
                                           Collection<WebServer> webServers)
        Returns the web server installation by the given name. Can return null.
        Parameters:
        name - the name to find web server installation with, cannot be null
        webServers - collection of web servers installations to search in, cannot be null
        Returns:
        web server installation by the given name or null if not found
      • getWebExtensionsComponent

        public static String getWebExtensionsComponent​(String webServerTypeId)
        Returns 1C:Enterprise runtime web extensions component type id by the given web server type id.
        Parameters:
        webServerTypeId - the web server type id to get 1C:Enterprise runtime web extensions component type id for, cannot be null
        Returns:
        1C:Enterprise runtime web extensions component type id, never null
      • getProfileWebServerTypeName

        public static String getProfileWebServerTypeName​(String webServerTypeId)
        Returns 1C:Enterprise runtime profile web server name by its DT IDE web server type id.
        Parameters:
        webServerTypeId - web server type id, cannot be null
        Returns:
        1C:Enterprise runtime profile web server name or null if none
      • findProfileWebServer

        public static WebServer findProfileWebServer​(Collection<WebServer> webServers,
                                                     String profileWebServerTypeName)
        Find web server by its 1C:Enterprise runtime profile name. Can return null.
        Parameters:
        webServers - web servers collection to serach in, cannot be null
        profileWebServerTypeName - 1C:Enterprise runtime profile web server name, cannot be null
        Returns:
        found web server or null if not found
      • getNames

        public static Collection<String> getNames​(List<WebServer> webServers)
        Returns collection of all names of given web servers.
        Parameters:
        collection - of web servers to get names for, cannot be null
        Returns:
        collection of already existed names, never null
      • getLabel

        public static String getLabel​(IWebServerType type)
        Returns UI presentable label for the given web server type.
        Parameters:
        type - the web server type, cannot be null
        Returns:
        UI presentable label for the given web server type, never null