|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.adaptors.http.HttpConnectorServerImpl
This class plugs in the Tomcat WebServer to the HTTP Connector.
HttpServerInterface| Constructor Summary | |
HttpConnectorServerImpl()
|
|
HttpConnectorServerImpl(int port,
MBeanServer server)
constructor with Port and MBeanServer configuration options. |
|
HttpConnectorServerImpl(int port,
MBeanServer server,
boolean sslSupport)
constructor with the given port, MBean server and SSL support. |
|
HttpConnectorServerImpl(int port,
MBeanServer server,
boolean sslSupport,
boolean isJarFile)
Constructor with the given port, MBean server, SSL support and configuraton file taken from jar or not. |
|
| Method Summary | |
void |
addUser(java.lang.String userName,
java.lang.String passwd)
This method adds a new User with the userName and password to the Authentication of the WebServer. |
java.lang.String |
getConfigFileName()
Getter for the configFileName. |
java.lang.Integer |
getPort()
Returns the port number in which the http server gets started. |
boolean |
isAuthentication()
To know whether the authentication is enabled in the WebServer. |
boolean |
isSslSupport()
To know whether the SSL Support is enabled in the WebServer. |
void |
restartHttpServer()
Restarts the WebServer. |
void |
setAuthentication(boolean auth)
Setter for enabling and disabling Authentication of 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 |
setPort(java.lang.Integer port)
Sets the port number in which the http server to get started. |
void |
setSslSupport(boolean sslSupport)
Setter for enabling and disabling SSL Support of the WebServer. |
void |
startHttpServer()
Starts the HttpServer - Tomcat WebServer. |
void |
stopHttpServer()
Stops the WebServer. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public HttpConnectorServerImpl()
public HttpConnectorServerImpl(int port,
MBeanServer server)
port - The port of the HTTP Server - Tomcat WebServer.server - The MBeanserver.
public HttpConnectorServerImpl(int port,
MBeanServer server,
boolean sslSupport)
port - The port to start the HTTP Server.server - The MBeanServer.sslSupport - The boolean flag to turn ON/OFF SSL Support
public HttpConnectorServerImpl(int port,
MBeanServer server,
boolean sslSupport,
boolean isJarFile)
port - The port to start the HTTP Server.server - The MBeanServer.sslSupport - The boolean flag to turn ON/OFF SSL SupportisJarFile - Boolean flag to indicate SSL configuration file taken from Jar.| Method Detail |
public void setConfigFileName(java.lang.String configFileName)
configFileName - The configuration file name with path.public java.lang.String getConfigFileName()
public java.lang.Integer getPort()
setPort(int port)
public void setPort(java.lang.Integer port)
throws java.lang.Exception
the - port number of the http web-server.getPort()public void setAuthentication(boolean auth)
auth - The flag for turning ON/OFF the authentication of WebServer.public boolean isAuthentication()
public void addUser(java.lang.String userName,
java.lang.String passwd)
userName - The user name to be added.password - The password for the user.public void setSslSupport(boolean sslSupport)
sslSupport - The flag for turning ON/OFF the SSL Support of WebServer.public boolean isSslSupport()
public void startHttpServer()
throws java.lang.Exception
stopHttpServer()
public void stopHttpServer()
throws java.lang.Exception
startHttpServer()
public void restartHttpServer()
throws java.lang.Exception
startHttpServer()public void setPort(int port)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||