| java.lang.Object com.adventnet.adaptors.html.JettyHtmlServer
JettyHtmlServer | public class JettyHtmlServer implements HttpServerInterface(Code) | | This class plugs in the Jetty WebServer to the HtmlAdaptor.
See Also: HttpServerInterface |
Constructor Summary | |
public | JettyHtmlServer() Primary constructor for the HttpServerImpl without any configuration options. | public | JettyHtmlServer(int port, boolean authentication) Secondary constructor with configuration options.
Note: For this version, authentication is disabled and hence will not
have any effect by setting authentication to true.
Parameters: port - The port to start the WebServer Parameters: authentication - The boolean flag to turn ON/OFFAuthentication of the Requests. | public | JettyHtmlServer(int port, boolean authentication, boolean sslSupport) Constructor with configuration options.
Note: For this version, authentication and SSL support are disabled and
hence will not have any effect by setting true to those parameters.
Parameters: port - The port to start the WebServer Parameters: authentication - The boolean flag to turn ON/OFFAuthentication of the Requests. | public | JettyHtmlServer(int port, boolean authentication, boolean sslSupport, boolean isJarFile) Constructor with configuration options.
Note: For this version, authentication and SSL support are disabled and
hence will not have any effect by setting true to those parameters.
Parameters: port - The port to start the WebServer Parameters: authentication - The boolean flag to turn ON/OFFAuthentication of the Requests. |
Method Summary | |
public void | addUser(String userName, String passwd) This method adds a new User with the userName and password
to the Authentication of the WebServer. | void | changeAgentDir(XMLNode node, String agentDir) | public String | getConfigFileName() Getter for the configFileName. | public String | getConfigJarFile() Setter for the configuration file Name which will be inside the
jar containing this class. | public Integer | getPort() Returns the port number in which the http server gets started. | public boolean | isAuthentication() To know whether the authentication is enabled in the WebServer. | public boolean | isSslSupport() To know whether the SSL Support is enabled in the WebServer. | public void | restartHttpServer() Restarts the WebServer. | public void | setAuthentication(boolean auth) Setter for enabling and disabling Authentication of the WebServer. | public void | setConfigFileName(String configFileName) Setter for the configuration file Name with location. | public void | setConfigJarFile(String jarConfig) Setter for the configuration file Name which will be inside the
jar containing this class. | public void | setPort(Integer port) Sets the port number in which the http server to get started. | public void | setPort(int port) Sets the port number in which the http server to get started. | public void | setSslSupport(boolean sslSupport) Setter for enabling and disabling SSL Support of the WebServer. | public void | startHttpServer() Starts the HttpServer - Jetty WebServer. | public void | stopHttpServer() Stops the WebServer. |
JettyHtmlServer | public JettyHtmlServer()(Code) | | Primary constructor for the HttpServerImpl without any configuration options.
|
JettyHtmlServer | public JettyHtmlServer(int port, boolean authentication)(Code) | | Secondary constructor with configuration options.
Note: For this version, authentication is disabled and hence will not
have any effect by setting authentication to true.
Parameters: port - The port to start the WebServer Parameters: authentication - The boolean flag to turn ON/OFFAuthentication of the Requests. Default is false. |
JettyHtmlServer | public JettyHtmlServer(int port, boolean authentication, boolean sslSupport)(Code) | | Constructor with configuration options.
Note: For this version, authentication and SSL support are disabled and
hence will not have any effect by setting true to those parameters.
Parameters: port - The port to start the WebServer Parameters: authentication - The boolean flag to turn ON/OFFAuthentication of the Requests. Default is false. Parameters: sslSupport - The boolean flag to turn ON/OFF SSL Support.Default is false. |
JettyHtmlServer | public JettyHtmlServer(int port, boolean authentication, boolean sslSupport, boolean isJarFile)(Code) | | Constructor with configuration options.
Note: For this version, authentication and SSL support are disabled and
hence will not have any effect by setting true to those parameters.
Parameters: port - The port to start the WebServer Parameters: authentication - The boolean flag to turn ON/OFFAuthentication of the Requests. Default is false. Parameters: sslSupport - The boolean flag to turn ON/OFF SSL Support.Default is false. Parameters: isJarFile - Boolean flag to indicate configuration files taken from Jar. |
addUser | public void addUser(String userName, String passwd)(Code) | | This method adds a new User with the userName and password
to the Authentication of the WebServer.
Note: For this version, this is disabled and hence will not have
any effect by calling this method.
Parameters: userName - The user name to be added. Parameters: password - The password for the user. |
changeAgentDir | void changeAgentDir(XMLNode node, String agentDir)(Code) | | |
getConfigFileName | public String getConfigFileName()(Code) | | Getter for the configFileName.
The configuration file Name by which the Server is running. |
getConfigJarFile | public String getConfigJarFile()(Code) | | Setter for the configuration file Name which will be inside the
jar containing this class.
The configuration file name by which the Server is runningwith path as in the jar File. |
getPort | public Integer getPort()(Code) | | Returns the port number in which the http server gets started.
the port number. See Also: setPort(Integer port) |
isAuthentication | public boolean isAuthentication()(Code) | | To know whether the authentication is enabled in the WebServer.
Note: For this version, this is disabled and hence will always return false.
true if the authentication of the WebServer is turned ON else false. |
isSslSupport | public boolean isSslSupport()(Code) | | To know whether the SSL Support is enabled in the WebServer.
Note: For this version, this is disabled and hence will always return false.
true if the SSL Support of the WebServer is turned ON else false. |
restartHttpServer | public void restartHttpServer() throws Exception(Code) | | Restarts the WebServer.
exception: Exception - while error trying to restart the WebServer |
setAuthentication | public void setAuthentication(boolean auth)(Code) | | Setter for enabling and disabling Authentication of the WebServer.
Note: For this version, this is disabled and hence will not have
any effect by calling this method.
Parameters: auth - The flag for turning ON/OFF the authentication of WebServer. |
setConfigFileName | public void setConfigFileName(String configFileName)(Code) | | Setter for the configuration file Name with location.
Parameters: configFileName - The configuration file name with path. |
setConfigJarFile | public void setConfigJarFile(String jarConfig)(Code) | | Setter for the configuration file Name which will be inside the
jar containing this class.
Parameters: jarConfig - The configuration file name with path as in the jar File. |
setPort | public void setPort(Integer port) throws Exception(Code) | | Sets the port number in which the http server to get started.
Parameters: the - port number of the http web-server. See Also: getPort() |
setPort | public void setPort(int port)(Code) | | Sets the port number in which the http server to get started.
Parameters: the - port number of the http web-server. See Also: getPort() |
setSslSupport | public void setSslSupport(boolean sslSupport)(Code) | | Setter for enabling and disabling SSL Support of the WebServer.
Note: For this version, this is disabled and hence will not have
any effect by calling this method.
Parameters: sslSupport - The flag for turning ON/OFF the SSL Support of WebServer. |
startHttpServer | public void startHttpServer() throws Exception(Code) | | Starts the HttpServer - Jetty WebServer.
See Also: stopHttpServer() exception: Exception - on error while starting WebServer. |
stopHttpServer | public void stopHttpServer() throws Exception(Code) | | Stops the WebServer.
exception: Exception - on error while stopping WebServer. |
|
|