Interface IWebServerLookup

  • All Known Implementing Classes:
    AbstractApacheLookup, AbstractWindowsApacheLookup, ApacheRegLookup, ApacheScLookup, ApacheWebServerLookup, ApacheWmicLookup, IisLookup

    public interface IWebServerLookup
    Describes a web server local installations lookup. Web server lookups are defined by extensions. A web server lookup extension is defined in plugin.xml.

    Following is an example definition of a web server lookup extension:

     <extension point="">
    Defined web server lookups are automatically used for web servers local installations search.

    This interface is intended to be implemented and registered by clients.
    Instances are not intended to be explicitly used by client, use IWebServerManager instead.

    • Field Detail


        static final Pattern VERSION_PATTERN
        Pattern for parsing 'digit.digit' version from version string.
    • Method Detail

      • lookup

        Collection<WebServer> lookup​(IWebServerTypesRegistry webServerTypesRegistry,
                                     IWebServerNameGenerator nameGenerator,
                                     Collection<String> existingNames)
                              throws org.eclipse.core.runtime.CoreException
        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.
        webServerTypesRegistry - type registry of registered web server types, cannot be null
        nameGenerator - name generator for found web servers, cannot be null
        existingNames - collection of already existing web servers names, delegate cannot create web server with any of these names, cannot be null
        collection of found web servers, never null
        org.eclipse.core.runtime.CoreException - if search fails