org.apache.mina.common

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 » mina 2.0.0 M1 » org.apache.mina.common 
org.apache.mina.common
Common types required for users to use MINA.
Java Source File NameTypeComment
AbstractIoAcceptor.javaClass A base implementation of IoAcceptor .
AbstractIoBuffer.javaClass A base implementation of IoBuffer .
AbstractIoConnector.javaClass A base implementation of IoConnector .
AbstractIoService.javaClass Base implementation of IoService s.
AbstractIoSession.javaClass Base implementation of IoSession .
AbstractIoSessionConfig.javaClass A base implementation of IoSessionConfig .
AbstractPollingConnectionlessIoAcceptor.javaClassIoAcceptor for datagram transport (UDP/IP).
AbstractPollingIoAcceptor.javaClass
AbstractPollingIoConnector.javaClass
AbstractPollingIoProcessor.javaClass An abstract implementation of IoProcessor which helps transport developers to write an IoProcessor easily.
AttributeKey.javaClass A key that makes its parent Map or session attribute to search fast while being debug-friendly by providing the string representation.
BufferDataException.javaClass A RuntimeException which is thrown when the data the IoBuffer contains is corrupt.
CachedBufferAllocator.javaClass An IoBufferAllocator that caches the buffers which are likely to be reused during auto-expansion of the buffers.

In SimpleBufferAllocator , the underlying ByteBuffer of the IoBuffer is reallocated on its capacity change, which means the newly allocated bigger ByteBuffer replaces the old small ByteBuffer .

CloseFuture.javaInterface An IoFuture for asynchronous close requests.
CompositeIoFuture.javaClass An IoFuture of IoFuture s.
ConnectFuture.javaInterface An IoFuture for asynchronous connect requests.
DefaultCloseFuture.javaClass A default implementation of CloseFuture .
DefaultConnectFuture.javaClass A default implementation of ConnectFuture .
DefaultExceptionMonitor.javaClass A default ExceptionMonitor implementation that logs uncaught exceptions using Logger .
DefaultFileRegion.javaClass
DefaultIoFilterChain.javaClass A default implementation of IoFilterChain that provides all operations for developers who want to implement their own transport layer once used with AbstractIoSession .
DefaultIoFilterChainBuilder.javaClass The default implementation of IoFilterChainBuilder which is useful in most cases.
DefaultIoFilterChainBuilderTest.javaClass Tests DefaultIoFilterChainBuilder .
DefaultIoFuture.javaClass A default implementation of IoFuture .
DefaultIoSessionDataStructureFactory.javaClass The default IoSessionDataStructureFactory implementation that creates a new HashMap -based IoSessionAttributeMap instance and a new synchronized CircularQueue instance per IoSession .
DefaultReadFuture.javaClass A default implementation of WriteFuture .
DefaultTransportMetadata.javaClass A default immutable implementation of TransportMetadata .
DefaultWriteFuture.javaClass A default implementation of WriteFuture .
DefaultWriteRequest.javaClass The default implementation of WriteRequest .
DummySession.javaClass A dummy IoSession for unit-testing or non-network-use of the classes that depends on IoSession .

Overriding I/O request methods

All I/O request methods (i.e.
ExceptionMonitor.javaClass Monitors uncaught exceptions.
ExpiringSessionRecycler.javaClass An IoSessionRecycler with sessions that time out on inactivity.
FileRegion.javaInterface Indicates the region of a file to be sent to the remote host.
FutureTest.javaClass Tests IoFuture implementations.
IdleStatus.javaClass Represents the type of idleness of IoSession or IoSession .
IdleStatusChecker.javaClass Detects idle sessions and fires sessionIdle events to them.
author:
   The Apache MINA Project (dev@mina.apache.org)
version:
   $Rev: 525369 $, $Date: 2007-04-04 05:05:11 +0200 (mer., 04 avr.
IoAcceptor.javaInterface Accepts incoming connection, communicates with clients, and fires events to IoHandler s.
IoBuffer.javaClass A byte buffer used by MINA applications.

This is a replacement for ByteBuffer .

IoBufferAllocator.javaInterface Allocates IoBuffer s and manages them.
IoBufferHexDumper.javaClass Provides utility methods for an IoBuffer .
IoBufferTest.javaClass Tests IoBuffer .
IoBufferWrapper.javaClass A IoBuffer that wraps a buffer and proxies any operations to it.

You can think this class like a FilterOutputStream .

IoConnector.javaInterface Connects to endpoint, communicates with the server, and fires events to IoHandler s.
IoEvent.javaClass An I/O event or an I/O request that MINA provides. Most users won't need to use this class.
IoEventType.javaenum An Enum that represents the type of I/O events and requests. Most users won't need to use this class.
IoFilter.javaInterface A filter which intercepts IoHandler events like Servlet filters.
IoFilterAdapter.javaClass An abstract adapter class for IoFilter .
IoFilterChain.javaInterface A container of IoFilter s that forwards IoHandler events to the consisting filters and terminal IoHandler sequentially.
IoFilterChainBuilder.javaInterface An interface that builds IoFilterChain in predefined way when IoSession is created.
IoFilterChainTest.javaClass Tests DefaultIoFilterChain .
IoFilterEvent.javaClass An I/O event or an I/O request that MINA provides for IoFilter s. Most users won't need to use this class.
IoFilterLifeCycleException.javaClass A RuntimeException which is thrown when IoFilter.init or IoFilter.onPostAdd(IoFilterChainStringorg.apache.mina.common.IoFilter.NextFilter) failed.
IoFuture.javaInterface Represents the result of an ashynchronous I/O operation.
IoFutureListener.javaInterface Something interested in being notified when the result of an IoFuture becomes available.
IoHandler.javaInterface Handles all I/O events fired by MINA.
IoHandlerAdapter.javaClass An abstract adapter class for IoHandler .
IoProcessor.javaInterface An internal interface to represent an 'I/O processor' that performs actual I/O operations for IoSession s.
IoService.javaInterface Base interface for all IoAcceptor s and IoConnector s that provide I/O service and manage IoSession s.
IoServiceListener.javaInterface Listens to events related to an IoService .
IoServiceListenerSupport.javaClass A helper which provides addition and removal of IoServiceListener s and firing events.
IoServiceListenerSupportTest.javaClass Tests IoServiceListenerSupport .
IoSession.javaInterface A handle which represents connection between two end-points regardless of transport types.

IoSession provides user-defined attributes.

IoSessionAttributeMap.javaInterface Stores the user-defined attributes which is provided per IoSession . All user-defined attribute accesses in IoSession are forwarded to the instance of IoSessionAttributeMap .
IoSessionConfig.javaInterface The configuration of IoSession .
IoSessionDataStructureFactory.javaInterface Provides data structures to a newly created session.
IoSessionInitializationException.javaClass A RuntimeException that is thrown when the initialization of an IoSession fails.
IoSessionInitializer.javaInterface Defines a callback for obtaining the IoSession during session initialization.
IoSessionRecycler.javaInterface A connectionless transport can recycle existing sessions by assigning an IoSessionRecycler to an IoService .
IoUtil.javaClass A utility class that provides various convenience methods related with IoSession and IoFuture .
NothingWrittenException.javaClass An exception which is thrown when one or more write requests resulted in no actual write operation.
ReadFuture.javaInterface An IoFuture for IoSession.read asynchronous read requests .
RuntimeIoException.javaClass A unchecked version of IOException .
SimpleBufferAllocator.javaClass A simplistic IoBufferAllocator which simply allocates a new buffer every time.
SimpleIoProcessorPool.javaClass An IoProcessor pool that distributes IoSession s into one or more IoProcessor s.
TrafficMask.javaClass A type-safe mask that is used to control the traffic of IoSession with IoSession.setTrafficMask(TrafficMask) .
TransportMetadata.javaInterface Provides meta-information that describes an IoService .
UnderivableBuffer.javaClass An IoBufferWrapper that prohibits derivation of the buffer.
UnknownMessageTypeException.javaClass An exception that is thrown when the type of the message cannot be determined.
WriteException.javaClass An exception which is thrown when one or more write operations were failed.
WriteFuture.javaInterface An IoFuture for asynchronous write requests.

Example

 IoSession session = ...;
 WriteFuture future = session.write(...);
 // Wait until the message is completely written out to the O/S buffer.
 future.join();
 if( future.isWritten() )
 {
 // The message has been written successfully.
 }
 else
 {
 // The messsage couldn't be written out completely for some reason.
 // (e.g.
WriteRequest.javaInterface Represents write request fired by IoSession.write(Object) .
WriteRequestQueue.javaInterface Stores WriteRequest s which are queued to an IoSession .
WriteRequestWrapper.javaClass A wrapper for an existing WriteRequest .
WriteTimeoutException.javaClass An exception which is thrown when write buffer is not flushed for IoSessionConfig.getWriteTimeout seconds.
WriteToClosedSessionException.javaClass An exception which is thrown when one or more write operations were attempted on a closed session.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.