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


org.mortbay.jetty.AbstractConnector
   org.mortbay.jetty.bio.SocketConnector

All known Subclasses:   org.mortbay.jetty.security.SslSocketConnector,
SocketConnector
public class SocketConnector extends AbstractConnector (Code)
Socket Connector. This connector implements a traditional blocking IO and threading model. Normal JRE sockets are used and a thread is allocated per connection. Buffers are managed so that large buffers are only allocated to active connections. This Connector should only be used if NIO is not available.
author:
   gregw

Inner Class :protected class Connection extends SocketEndPoint implements Runnable

Field Summary
protected  Set_connections
    
protected  ServerSocket_serverSocket
    

Constructor Summary
public  SocketConnector()
     Constructor.

Method Summary
public  voidaccept(int acceptorID)
    
public  voidclose()
    
public  voidcustomize(EndPoint endpoint, Request request)
    
protected  voiddoStart()
    
protected  voiddoStop()
    
public  ObjectgetConnection()
    
public  intgetLocalPort()
    
protected  BuffernewBuffer(int size)
    
protected  HttpConnectionnewHttpConnection(EndPoint endpoint)
     Allows subclass to override Conection if required.
protected  ServerSocketnewServerSocket(String host, int port, int backlog)
    
public  voidopen()
    

Field Detail
_connections
protected Set _connections(Code)



_serverSocket
protected ServerSocket _serverSocket(Code)




Constructor Detail
SocketConnector
public SocketConnector()(Code)
Constructor.




Method Detail
accept
public void accept(int acceptorID) throws IOException, InterruptedException(Code)



close
public void close() throws IOException(Code)



customize
public void customize(EndPoint endpoint, Request request) throws IOException(Code)



doStart
protected void doStart() throws Exception(Code)



doStop
protected void doStop() throws Exception(Code)



getConnection
public Object getConnection()(Code)



getLocalPort
public int getLocalPort()(Code)



newBuffer
protected Buffer newBuffer(int size)(Code)



newHttpConnection
protected HttpConnection newHttpConnection(EndPoint endpoint)(Code)
Allows subclass to override Conection if required.



newServerSocket
protected ServerSocket newServerSocket(String host, int port, int backlog) throws IOException(Code)



open
public void open() throws IOException(Code)



Fields inherited from org.mortbay.jetty.AbstractConnector
protected int _lowResourceMaxIdleTime(Code)(Java Doc)
protected int _maxIdleTime(Code)(Java Doc)
protected int _soLingerTime(Code)(Java Doc)

Methods inherited from org.mortbay.jetty.AbstractConnector
abstract protected void accept(int acceptorID) throws IOException, InterruptedException(Code)(Java Doc)
protected void configure(Socket socket) throws IOException(Code)(Java Doc)
protected void connectionClosed(HttpConnection connection)(Code)(Java Doc)
protected void connectionOpened(HttpConnection connection)(Code)(Java Doc)
public void customize(EndPoint endpoint, Request request) throws IOException(Code)(Java Doc)
protected void doStart() throws Exception(Code)(Java Doc)
protected void doStop() throws Exception(Code)(Java Doc)
public int getAcceptQueueSize()(Code)(Java Doc)
public int getAcceptors()(Code)(Java Doc)
public int getConfidentialPort()(Code)(Java Doc)
public String getConfidentialScheme()(Code)(Java Doc)
public int getConnections()(Code)(Java Doc)
public long getConnectionsDurationAve()(Code)(Java Doc)
public long getConnectionsDurationMax()(Code)(Java Doc)
public long getConnectionsDurationMin()(Code)(Java Doc)
public long getConnectionsDurationTotal()(Code)(Java Doc)
public int getConnectionsOpen()(Code)(Java Doc)
public int getConnectionsOpenMax()(Code)(Java Doc)
public int getConnectionsOpenMin()(Code)(Java Doc)
public int getConnectionsRequestsAve()(Code)(Java Doc)
public int getConnectionsRequestsMax()(Code)(Java Doc)
public int getConnectionsRequestsMin()(Code)(Java Doc)
public String getHost()(Code)(Java Doc)
public int getIntegralPort()(Code)(Java Doc)
public String getIntegralScheme()(Code)(Java Doc)
public int getLowResourceMaxIdleTime()(Code)(Java Doc)
public int getMaxIdleTime()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public int getPort()(Code)(Java Doc)
public int getRequests()(Code)(Java Doc)
public boolean getResolveNames()(Code)(Java Doc)
public Server getServer()(Code)(Java Doc)
public long getSoLingerTime()(Code)(Java Doc)
public boolean getStatsOn()(Code)(Java Doc)
public long getStatsOnMs()(Code)(Java Doc)
public ThreadPool getThreadPool()(Code)(Java Doc)
public boolean isConfidential(Request request)(Code)(Java Doc)
public boolean isIntegral(Request request)(Code)(Java Doc)
public void join() throws InterruptedException(Code)(Java Doc)
public Continuation newContinuation()(Code)(Java Doc)
abstract public void open() throws IOException(Code)(Java Doc)
public void persist(EndPoint endpoint) throws IOException(Code)(Java Doc)
public void setAcceptQueueSize(int acceptQueueSize)(Code)(Java Doc)
public void setAcceptors(int acceptors)(Code)(Java Doc)
public void setConfidentialPort(int confidentialPort)(Code)(Java Doc)
public void setConfidentialScheme(String confidentialScheme)(Code)(Java Doc)
public void setHost(String host)(Code)(Java Doc)
public void setIntegralPort(int integralPort)(Code)(Java Doc)
public void setIntegralScheme(String integralScheme)(Code)(Java Doc)
public void setLowResourceMaxIdleTime(int maxIdleTime)(Code)(Java Doc)
public void setMaxIdleTime(int maxIdleTime)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPort(int port)(Code)(Java Doc)
public void setResolveNames(boolean resolve)(Code)(Java Doc)
public void setServer(Server server)(Code)(Java Doc)
public void setSoLingerTime(int soLingerTime)(Code)(Java Doc)
public void setStatsOn(boolean on)(Code)(Java Doc)
public void setThreadPool(ThreadPool pool)(Code)(Java Doc)
public void statsReset()(Code)(Java Doc)
public void stopAccept(int acceptorID) throws Exception(Code)(Java Doc)
public String toString()(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.