com.adventnet.adaptors.html
Class HtmlAdaptorServerImpl

java.lang.Object
  |
  +--com.adventnet.adaptors.html.HtmlAdaptorServerImpl

public class HtmlAdaptorServerImpl
extends java.lang.Object
implements HttpServerInterface

This class plugs in the Tomcat WebServer to the HtmlAdaptor.

Since:
AdventNet Agent Toolkit (Java Edition) 5.0 release.
See Also:
HttpServerInterface

Field Summary
(package private)  TomcatServer server
           
 
Constructor Summary
HtmlAdaptorServerImpl()
          Primary constructor for the HtmlAdaptorServerImpl.
HtmlAdaptorServerImpl(boolean isJarFile)
          Secondary constructor for the HtmlAdaptorServerImpl.
 
Method Summary
 java.lang.String getConfigFileName()
          Getter for the configFileName.
 void restartHttpServer()
          Restarts the WebServer.
 void setConfigFileName(java.lang.String configFileName)
          Setter for the configuration file Name with location.
 void setPort(int port)
          set the port of the WebServer.
 void startHttpServer()
          Starts the HttpServer - Tomcat WebServer.
 void stopHttpServer()
          Stops the WebServer.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

TomcatServer server
Constructor Detail

HtmlAdaptorServerImpl

public HtmlAdaptorServerImpl()
Primary constructor for the HtmlAdaptorServerImpl.
See Also:
HtmlAdaptorServerImpl(boolean isJarFile)

HtmlAdaptorServerImpl

public HtmlAdaptorServerImpl(boolean isJarFile)
Secondary constructor for the HtmlAdaptorServerImpl.
See Also:
HtmlAdaptorServerImpl()
Method Detail

setConfigFileName

public void setConfigFileName(java.lang.String configFileName)
Setter for the configuration file Name with location.
Specified by:
setConfigFileName in interface HttpServerInterface
Parameters:
configFileName - The configuration file name with path.

getConfigFileName

public java.lang.String getConfigFileName()
Getter for the configFileName.
Specified by:
getConfigFileName in interface HttpServerInterface
Returns:
The configuration file Name by which the Server is running.

startHttpServer

public void startHttpServer()
                     throws java.lang.Exception
Starts the HttpServer - Tomcat WebServer.
Specified by:
startHttpServer in interface HttpServerInterface
Throws:
java.lang.Exception - on error while starting WebServer.
See Also:
stopHttpServer()

stopHttpServer

public void stopHttpServer()
                    throws java.lang.Exception
Stops the WebServer.
Specified by:
stopHttpServer in interface HttpServerInterface
Throws:
java.lang.Exception - on error while stopping WebServer.

restartHttpServer

public void restartHttpServer()
                       throws java.lang.Exception
Restarts the WebServer.
Specified by:
restartHttpServer in interface HttpServerInterface
Throws:
java.lang.Exception - while error trying to restart the WebServer

setPort

public void setPort(int port)
set the port of the WebServer.
Specified by:
setPort in interface HttpServerInterface
Throws:
java.lang.Exception - while error trying to restart the WebServer