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
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
server
TomcatServer server
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()
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