Class AbstractApacheLookup

    • Constructor Detail

      • AbstractApacheLookup

        public AbstractApacheLookup()
    • 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 be null
        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 be null
        x32archStr - - string value for x32 architecture
        x64archStr - - string value for x64 architecture
        Returns:
        architecture of executable file referenced by executable file path, never null but if obtaining architecture fails returns "undefined"