Class AbstractApacheLookup
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.core.webservers.AbstractApacheLookup
-
- All Implemented Interfaces:
IWebServerLookup
- Direct Known Subclasses:
AbstractWindowsApacheLookup
,ApacheWebServerLookup
public abstract class AbstractApacheLookup extends Object implements IWebServerLookup
Abstract implementation ofIWebServerLookup
for Apache web servers.
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.platform.services.core.webservers.IWebServerLookup
VERSION_PATTERN
-
-
Constructor Summary
Constructors Constructor Description AbstractApacheLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Arch
getApacheArchitecture(List<String> appCommands, String x32archStr, String x64archStr)
Gets architecture of Apache Web Serverprotected String
getApacheVersion(String executableFilePath)
Gets version of Apache Web Server.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.platform.services.core.webservers.IWebServerLookup
lookup
-
-
-
-
Method Detail
-
getApacheVersion
protected String getApacheVersion(String executableFilePath) throws org.eclipse.core.runtime.CoreException
Gets version of Apache Web Server. If version can't be obtained,CoreException
will be thrown.- Parameters:
excecutableFilePath
- executable file path, starting Apache Web Server, cannot benull
- Returns:
- version of executable file referenced by executable file path,
never
null
- Throws:
org.eclipse.core.runtime.CoreException
- if obtaining version fails
-
getApacheArchitecture
protected Arch getApacheArchitecture(List<String> appCommands, String x32archStr, String x64archStr)
Gets architecture of Apache Web Server- Parameters:
appCommands
- list of commands for comand line for getting web server architecture cannot benull
x32archStr
- - string value for x32 architecturex64archStr
- - string value for x64 architecture- Returns:
- architecture of executable file referenced by executable file path,
never
null
but if obtaining architecture fails returns "undefined"
-
-