Source Code Cross Referenced for ControlConnection.java in  » Net » ColoradoFTP » com » coldcore » coloradoftp » connection » 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 » Net » ColoradoFTP » com.coldcore.coloradoftp.connection 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        package com.coldcore.coloradoftp.connection;
02:
03:        import com.coldcore.coloradoftp.command.Reply;
04:        import com.coldcore.coloradoftp.session.Session;
05:
06:        /**
07:         * Control connection.
08:         *
09:         * When user connects to a server a control connection is created and assigned to him/her.
10:         * One user may have only one control connection which lives until user disconnects.
11:         * Control connection accepts user commands, executes them and sends replies.
12:         *
13:         * Control connection acts as a main point for all users' operations, every user is
14:         * identified by a control connection. As a result, control connection has references
15:         * to all user-related objects and vice versa.
16:         *
17:         * Note that a user may also have a single data connection. Which can be created and destroyed
18:         * as many times as required while the control connection lives on.
19:         * Control connection has a reference to a data connection initiator which is activated
20:         * when there is a need to establish a new data connection.
21:         *
22:         * Control connection may be poisoned at any time. When poisoned, a connection will commit
23:         * suicide as soon as all the data is written out to the user and the data connection finishes.
24:         * This feature is required to drop connections when server is full: when message is written
25:         * out to a user the connection will be dropped right away. Or when a user sends QUIT command,
26:         * the control connection will wait until the data connection dies and then it will kill itself.
27:         * So poisoned status must be set when user submits QUIT command.
28:         *
29:         * Some FTP commands put control connection into the INTERRUPT state which is then
30:         * cleared when the connection sends a reply. Such reply must refer to a command which
31:         * is allowed to clear the state or does not have a reference to a command.
32:         * Usually INTERRUPT state is trigerred by data transfer commands and cleared right
33:         * after data transfer ends.
34:         *
35:         *
36:         * ColoradoFTP - The Open Source FTP Server (http://cftp.coldcore.com)
37:         */
38:        public interface ControlConnection extends Connection {
39:
40:            /** Reply to user
41:             * @param reply Reply
42:             */
43:            public void reply(Reply reply);
44:
45:            /** Get user session
46:             * @return Session
47:             */
48:            public Session getSession();
49:
50:            /** Get data connection of this control connection
51:             * @return Data connection or NULL if does not have one
52:             */
53:            public DataConnection getDataConnection();
54:
55:            /** Set data connection of this control connection
56:             * @param dataConnection Data connection
57:             */
58:            public void setDataConnection(DataConnection dataConnection);
59:
60:            /** Get data connection initiator
61:             * @return Initiator
62:             */
63:            public DataConnectionInitiator getDataConnectionInitiator();
64:
65:            /** Get text length that awaits in the outgoing to user buffer
66:             * @return Test length
67:             */
68:            public int getOutgoingBufferSize();
69:
70:            /** Get text length that awaits in the incoming from user buffer
71:             * @return Test length
72:             */
73:            public int getIncomingBufferSize();
74:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.