Class AbstractWindowsApacheLookup
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.webservers.AbstractApacheLookup
-
- com._1c.g5.v8.dt.platform.services.core.webservers.AbstractWindowsApacheLookup
-
- All Implemented Interfaces:
IWebServerLookup
- Direct Known Subclasses:
ApacheRegLookup
,ApacheScLookup
,ApacheWmicLookup
public abstract class AbstractWindowsApacheLookup extends AbstractApacheLookup
AbstractAbstractApacheLookup
implementation for win32-systems.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Charset
CHARSET
protected static int
PROCESS_READ_TIMEOUT
-
Fields inherited from interface com._1c.g5.v8.dt.platform.services.core.webservers.IWebServerLookup
VERSION_PATTERN
-
-
Constructor Summary
Constructors Constructor Description AbstractWindowsApacheLookup()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
cutAttributes(String text)
Cut attributes from text.protected abstract List<String>
findApacheExcecutorLocations()
Find Apache 2 executable files locations on local drive.Collection<WebServer>
lookup(IWebServerTypesRegistry webServerTypesRegistry, IWebServerNameGenerator nameGenerator, Collection<String> existingNames)
Search for local installations of web servers.protected boolean
validateExecuteLocation(String excecutorPath)
Validate given web server execute location.-
Methods inherited from class com._1c.g5.v8.dt.platform.services.core.webservers.AbstractApacheLookup
getApacheArchitecture, getApacheVersion
-
-
-
-
Field Detail
-
PROCESS_READ_TIMEOUT
protected static final int PROCESS_READ_TIMEOUT
- See Also:
- Constant Field Values
-
CHARSET
protected static final Charset CHARSET
-
-
Method Detail
-
lookup
public Collection<WebServer> lookup(IWebServerTypesRegistry webServerTypesRegistry, IWebServerNameGenerator nameGenerator, Collection<String> existingNames) throws org.eclipse.core.runtime.CoreException
Description copied from interface:IWebServerLookup
Search for local installations of web servers. Method must return web server with type id, defined by extensions.
IWebServerTypesRegistry
can be used to get registered types and categories by versions.
IWebServerNameGenerator
can be used to generate unique name for found web servers.- Parameters:
webServerTypesRegistry
- type registry of registered web server types, cannot benull
nameGenerator
- name generator for found web servers, cannot benull
existingNames
- collection of already existing web servers names, delegate cannot create web server with any of these names, cannot benull
- Returns:
- collection of found web servers, never
null
- Throws:
org.eclipse.core.runtime.CoreException
- if search fails
-
findApacheExcecutorLocations
protected abstract List<String> findApacheExcecutorLocations() throws IOException
Find Apache 2 executable files locations on local drive.- Returns:
- list of patches to Apache 2 executable files,
never
null
- Throws:
IOException
- if search fails
-
validateExecuteLocation
protected boolean validateExecuteLocation(String excecutorPath)
Validate given web server execute location.- Parameters:
excecutorPath
- web server executor path to validate, cannot benull
- Returns:
- whether given executor path is valid
-
-