Package org.eclipse.help.server
Class HelpServer
java.lang.Object
org.eclipse.help.server.HelpServer
- Since:
- 3.4 Abstract class representing a web server which can be used to host the Eclipse help system using the extension point org.eclipse.help.base.server. Classes extending this abstract class must be capable of launching a Web Server and
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getHost()
Returns the host name or ip the app server runs on.abstract int
getPort()
Returns the port number the app server listens onabstract void
Start a server application to host the Eclipse help system.abstract void
Stop a server application.
-
Constructor Details
-
HelpServer
public HelpServer()
-
-
Method Details
-
start
Start a server application to host the Eclipse help system. The server is responsible for initializing the servlets, jsp files and other resources for the help system as defined by the extension pointsorg.eclipse.equinox.http.registry.resources
andorg.eclipse.equinox.http.registry.servlets
for the httpcontextIdorg.eclipse.help.webapp.help
- Parameters:
webappName
- The name of this web application- Throws:
Exception
- If anything prevented starting the server.
-
stop
Stop a server application. If an application of this name has not been started do nothing- Parameters:
webappName
- the name of a running web application- Throws:
CoreException
- If there was any error during stopping.
-
getPort
public abstract int getPort()Returns the port number the app server listens on- Returns:
- integer port number, 0 if server not started
-
getHost
Returns the host name or ip the app server runs on.- Returns:
- String representation of host name of IP, null if server not started yet
-