Class WebServers
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.webservers.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
equals(WebServer first, WebServer second)
Determines whether two possibly-null web servers are equal.static WebServer
findByName(String name, Collection<WebServer> webServers)
Returns the web server installation by the given name.static WebServer
findProfileWebServer(Collection<WebServer> webServers, String profileWebServerTypeName)
Find web server by its 1C:Enterprise runtime profile name.static String
getLabel(IWebServerType type)
Returns UI presentable label for the given web server type.static Collection<String>
getNames(List<WebServer> webServers)
Returns collection of all names of given web servers.static String
getProfileWebServerTypeName(String webServerTypeId)
Returns 1C:Enterprise runtime profile web server name by its DT IDE web server type id.static String
getWebExtensionsComponent(String webServerTypeId)
Returns 1C:Enterprise runtime web extensions component type id by the given web server type id.
-
-
-
Method Detail
-
equals
public static boolean equals(WebServer first, WebServer second)
Determines whether two possibly-null web servers are equal. Returns:true
iffirst
andsecond
are bothnull
.true
iffirst
andsecond
are both non-null
and they have same name.false
in all other situations.
- Parameters:
first
- the fist web server to check equalitysecond
- 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 returnnull
.- Parameters:
name
- the name to find web server installation with, cannot benull
webServers
- collection of web servers installations to search in, cannot benull
- 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 benull
- 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 benull
- 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 returnnull
.- Parameters:
webServers
- web servers collection to serach in, cannot benull
profileWebServerTypeName
- 1C:Enterprise runtime profile web server name, cannot benull
- 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 benull
- 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 benull
- Returns:
- UI presentable label for the given web server type, never
null
-
-