Java Doc for JettyHtmlServer.java in  » JMX » XMOJO » com » adventnet » adaptors » html » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » JMX » XMOJO » com.adventnet.adaptors.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  voidaddUser(String userName, String passwd)
     This method adds a new User with the userName and password to the Authentication of the WebServer.
 voidchangeAgentDir(XMLNode node, String agentDir)
    
public  StringgetConfigFileName()
     Getter for the configFileName.
public  StringgetConfigJarFile()
     Setter for the configuration file Name which will be inside the jar containing this class.
public  IntegergetPort()
     Returns the port number in which the http server gets started.
public  booleanisAuthentication()
     To know whether the authentication is enabled in the WebServer.
public  booleanisSslSupport()
     To know whether the SSL Support is enabled in the WebServer.
public  voidrestartHttpServer()
     Restarts the WebServer.
public  voidsetAuthentication(boolean auth)
     Setter for enabling and disabling Authentication of the WebServer.
public  voidsetConfigFileName(String configFileName)
     Setter for the configuration file Name with location.
public  voidsetConfigJarFile(String jarConfig)
     Setter for the configuration file Name which will be inside the jar containing this class.
public  voidsetPort(Integer port)
     Sets the port number in which the http server to get started.
public  voidsetPort(int port)
     Sets the port number in which the http server to get started.
public  voidsetSslSupport(boolean sslSupport)
     Setter for enabling and disabling SSL Support of the WebServer.
public  voidstartHttpServer()
     Starts the HttpServer - Jetty WebServer.
public  voidstopHttpServer()
     Stops the WebServer.


Constructor Detail
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.




Method Detail
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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.