Java Doc for Server.java in  » Sevlet-Container » jetty-modules » org » mortbay » jetty » 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 » Sevlet Container » jetty modules » org.mortbay.jetty 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mortbay.jetty.handler.HandlerWrapper
   org.mortbay.jetty.Server

Server
public class Server extends HandlerWrapper implements Attributes(Code)
Jetty HTTP Servlet Server. This class is the main class for the Jetty HTTP Servlet server. It aggregates Connectors (HTTP request receivers) and request Handlers. The server is itself a handler and a ThreadPool. Connectors use the ThreadPool methods to run jobs that will eventually call the handle method.



Constructor Summary
public  Server()
    
public  Server(int port)
     Convenience constructor Creates server and a SocketConnector at the passed port.

Method Summary
public  voidaddConnector(Connector connector)
    
public  voidaddHandler(Handler handler)
    
public  voidaddLifeCycle(LifeCycle c)
     Add a LifeCycle object to be started/stopped along with the Server.
public  voidaddUserRealm(UserRealm realm)
    
public  voidclearAttributes()
    
protected  voiddoStart()
    
protected  voiddoStop()
    
public  ObjectgetAttribute(String name)
    
public  EnumerationgetAttributeNames()
    
public  Connector[]getConnectors()
    
public  ContainergetContainer()
    
public  Handler[]getHandlers()
    
public  booleangetSendServerVersion()
    
public  SessionIdManagergetSessionIdManager()
    
public  booleangetStopAtShutdown()
    
public  ThreadPoolgetThreadPool()
    
public  UserRealm[]getUserRealms()
    
public  StringgetVersion()
    
public  voidhandle(HttpConnection connection)
    
public  voidjoin()
    
public  voidremoveAttribute(String name)
    
public  voidremoveConnector(Connector connector)
     Conveniance method which calls Server.getConnectors() and Server.setConnectors(Connector[]) to remove a connector.
public  voidremoveHandler(Handler handler)
    
public  voidremoveLifeCycle(LifeCycle c)
    
public  voidremoveUserRealm(UserRealm realm)
    
public  voidsetAttribute(String name, Object attribute)
    
public  voidsetConnectors(Connector[] connectors)
     Set the connectors for this server.
public  voidsetHandlers(Handler[] handlers)
    
public  voidsetSendServerVersion(boolean sendServerVersion)
    
public  voidsetSessionIdManager(SessionIdManager sessionIdManager)
    
public  voidsetStopAtShutdown(boolean stop)
    
public  voidsetThreadPool(ThreadPool threadPool)
    
public  voidsetUserRealms(UserRealm[] realms)
    


Constructor Detail
Server
public Server()(Code)



Server
public Server(int port)(Code)
Convenience constructor Creates server and a SocketConnector at the passed port.




Method Detail
addConnector
public void addConnector(Connector connector)(Code)



addHandler
public void addHandler(Handler handler)(Code)



addLifeCycle
public void addLifeCycle(LifeCycle c)(Code)
Add a LifeCycle object to be started/stopped along with the Server.
Parameters:
  c -



addUserRealm
public void addUserRealm(UserRealm realm)(Code)



clearAttributes
public void clearAttributes()(Code)



doStart
protected void doStart() throws Exception(Code)



doStop
protected void doStop() throws Exception(Code)



getAttribute
public Object getAttribute(String name)(Code)



getAttributeNames
public Enumeration getAttributeNames()(Code)



getConnectors
public Connector[] getConnectors()(Code)
Returns the connectors.



getContainer
public Container getContainer()(Code)
Returns the container.



getHandlers
public Handler[] getHandlers()(Code)



getSendServerVersion
public boolean getSendServerVersion()(Code)



getSessionIdManager
public SessionIdManager getSessionIdManager()(Code)
Returns the sessionIdManager.



getStopAtShutdown
public boolean getStopAtShutdown()(Code)



getThreadPool
public ThreadPool getThreadPool()(Code)
Returns the threadPool.



getUserRealms
public UserRealm[] getUserRealms()(Code)
Map of realm name to UserRealm instances.



getVersion
public String getVersion()(Code)



handle
public void handle(HttpConnection connection) throws IOException, ServletException(Code)



join
public void join() throws InterruptedException(Code)



removeAttribute
public void removeAttribute(String name)(Code)



removeConnector
public void removeConnector(Connector connector)(Code)
Conveniance method which calls Server.getConnectors() and Server.setConnectors(Connector[]) to remove a connector.
Parameters:
  connector - The connector to remove.



removeHandler
public void removeHandler(Handler handler)(Code)



removeLifeCycle
public void removeLifeCycle(LifeCycle c)(Code)
Remove a LifeCycle object to be started/stopped along with the Server
Parameters:
  c -



removeUserRealm
public void removeUserRealm(UserRealm realm)(Code)



setAttribute
public void setAttribute(String name, Object attribute)(Code)



setConnectors
public void setConnectors(Connector[] connectors)(Code)
Set the connectors for this server. Each connector has this server set as it's ThreadPool and its Handler.
Parameters:
  connectors - The connectors to set.



setHandlers
public void setHandlers(Handler[] handlers)(Code)



setSendServerVersion
public void setSendServerVersion(boolean sendServerVersion)(Code)



setSessionIdManager
public void setSessionIdManager(SessionIdManager sessionIdManager)(Code)

Parameters:
  sessionIdManager - The sessionIdManager to set.



setStopAtShutdown
public void setStopAtShutdown(boolean stop)(Code)



setThreadPool
public void setThreadPool(ThreadPool threadPool)(Code)

Parameters:
  threadPool - The threadPool to set.



setUserRealms
public void setUserRealms(UserRealm[] realms)(Code)

Parameters:
  realms - Map of realm name to UserRealm instances.



Methods inherited from org.mortbay.jetty.handler.HandlerWrapper
public void addHandler(Handler handler)(Code)(Java Doc)
protected void doStart() throws Exception(Code)(Java Doc)
protected void doStop() throws Exception(Code)(Java Doc)
protected Object expandChildren(Object list, Class byClass)(Code)(Java Doc)
public Handler getHandler()(Code)(Java Doc)
public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException(Code)(Java Doc)
public void setHandler(Handler handler)(Code)(Java Doc)
public void setServer(Server server)(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.