Java Doc for IoFilterChain.java in  » Net » mina-2.0.0-M1 » org » apache » mina » common » 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 » mina 2.0.0 M1 » org.apache.mina.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.mina.common.IoFilterChain

All known Subclasses:   org.apache.mina.common.DefaultIoFilterChain,
IoFilterChain
public interface IoFilterChain (Code)
A container of IoFilter s that forwards IoHandler events to the consisting filters and terminal IoHandler sequentially. Every IoSession has its own IoFilterChain (1-to-1 relationship).
author:
   The Apache MINA Project (dev@mina.apache.org)
version:
   $Rev: 593474 $, $Date: 2007-11-09 03:14:12 -0700 (Fri, 09 Nov 2007) $

Inner Class :public interface Entry



Method Summary
 voidaddAfter(String baseName, String name, IoFilter filter)
     Adds the specified filter with the specified name just after the filter whose name is baseName in this chain.
 voidaddBefore(String baseName, String name, IoFilter filter)
     Adds the specified filter with the specified name just before the filter whose name is baseName in this chain.
 voidaddFirst(String name, IoFilter filter)
     Adds the specified filter with the specified name at the beginning of this chain.
 voidaddLast(String name, IoFilter filter)
     Adds the specified filter with the specified name at the end of this chain.
 voidclear()
     Removes all filters added to this chain.
 booleancontains(String name)
     Returns true if this chain contains an IoFilter with the specified name.
 booleancontains(IoFilter filter)
     Returns true if this chain contains the specified filter.
 booleancontains(Class<? extends IoFilter> filterType)
     Returns true if this chain contains an IoFilter of the specified filterType.
public  voidfireExceptionCaught(Throwable cause)
     Fires a IoHandler.exceptionCaught(IoSessionThrowable) event.
public  voidfireFilterClose()
     Fires a IoSession.close event.
public  voidfireFilterSetTrafficMask(TrafficMask trafficMask)
     Fires a IoSession.setTrafficMask(TrafficMask) event.
public  voidfireFilterWrite(WriteRequest writeRequest)
     Fires a IoSession.write(Object) event.
public  voidfireMessageReceived(Object message)
     Fires a IoFilterChain.fireMessageReceived(Object) event.
public  voidfireMessageSent(WriteRequest request)
     Fires a IoHandler.sessionOpened(IoSession) event.
public  voidfireSessionClosed()
     Fires a IoHandler.sessionClosed(IoSession) event.
public  voidfireSessionCreated()
     Fires a IoHandler.sessionCreated(IoSession) event.
public  voidfireSessionIdle(IdleStatus status)
     Fires a IoHandler.sessionIdle(IoSessionIdleStatus) event.
public  voidfireSessionOpened()
     Fires a IoHandler.sessionOpened(IoSession) event.
 IoFilterget(String name)
     Returns the IoFilter with the specified name in this chain.
 IoFilterget(Class<? extends IoFilter> filterType)
     Returns the IoFilter with the specified filterType in this chain.
 List<Entry>getAll()
     Returns the list of all Entry s this chain contains.
 List<Entry>getAllReversed()
     Returns the reversed list of all Entry s this chain contains.
 EntrygetEntry(String name)
     Returns the Entry with the specified name in this chain.
 EntrygetEntry(IoFilter filter)
     Returns the Entry with the specified filter in this chain.
 EntrygetEntry(Class<? extends IoFilter> filterType)
     Returns the Entry with the specified filterType in this chain.
 NextFiltergetNextFilter(String name)
     Returns the NextFilter of the IoFilter with the specified name in this chain.
 NextFiltergetNextFilter(IoFilter filter)
     Returns the NextFilter of the specified IoFilter in this chain.
 NextFiltergetNextFilter(Class<? extends IoFilter> filterType)
     Returns the NextFilter of the specified filterType in this chain.
 IoSessiongetSession()
     Returns the parent IoSession of this chain.
 IoFilterremove(String name)
     Removes the filter with the specified name from this chain.
 voidremove(IoFilter filter)
     Replace the filter with the specified name with the specified new filter.
 IoFilterremove(Class<? extends IoFilter> filterType)
     Replace the filter of the specified type with the specified new filter.
 IoFilterreplace(String name, IoFilter newFilter)
     Replace the filter with the specified name with the specified new filter.
 voidreplace(IoFilter oldFilter, IoFilter newFilter)
     Replace the filter with the specified name with the specified new filter.
 IoFilterreplace(Class<? extends IoFilter> oldFilterType, IoFilter newFilter)
     Replace the filter of the specified type with the specified new filter.



Method Detail
addAfter
void addAfter(String baseName, String name, IoFilter filter)(Code)
Adds the specified filter with the specified name just after the filter whose name is baseName in this chain.
throws:
  IoFilterLifeCycleException - if IoFilter.onPostAdd(IoFilterChainStringNextFilter) orIoFilter.init throws an exception.



addBefore
void addBefore(String baseName, String name, IoFilter filter)(Code)
Adds the specified filter with the specified name just before the filter whose name is baseName in this chain.
throws:
  IoFilterLifeCycleException - if IoFilter.onPostAdd(IoFilterChainStringNextFilter) orIoFilter.init throws an exception.



addFirst
void addFirst(String name, IoFilter filter)(Code)
Adds the specified filter with the specified name at the beginning of this chain.
throws:
  IoFilterLifeCycleException - if IoFilter.onPostAdd(IoFilterChainStringNextFilter) orIoFilter.init throws an exception.



addLast
void addLast(String name, IoFilter filter)(Code)
Adds the specified filter with the specified name at the end of this chain.
throws:
  IoFilterLifeCycleException - if IoFilter.onPostAdd(IoFilterChainStringNextFilter) orIoFilter.init throws an exception.



clear
void clear() throws Exception(Code)
Removes all filters added to this chain.
throws:
  Exception - if IoFilter.onPostRemove(IoFilterChainStringNextFilter) thrown an exception.



contains
boolean contains(String name)(Code)
Returns true if this chain contains an IoFilter with the specified name.



contains
boolean contains(IoFilter filter)(Code)
Returns true if this chain contains the specified filter.



contains
boolean contains(Class<? extends IoFilter> filterType)(Code)
Returns true if this chain contains an IoFilter of the specified filterType.



fireExceptionCaught
public void fireExceptionCaught(Throwable cause)(Code)
Fires a IoHandler.exceptionCaught(IoSessionThrowable) event. Most users don't need to call this method at all. Please use this method only when you implement a new transport or fire a virtual event.



fireFilterClose
public void fireFilterClose()(Code)
Fires a IoSession.close event. Most users don't need to call this method at all. Please use this method only when you implement a new transport or fire a virtual event.



fireFilterSetTrafficMask
public void fireFilterSetTrafficMask(TrafficMask trafficMask)(Code)
Fires a IoSession.setTrafficMask(TrafficMask) event. Most users don't need to call this method at all. Please use this method only when you implement a new transport or fire a virtual event.



fireFilterWrite
public void fireFilterWrite(WriteRequest writeRequest)(Code)
Fires a IoSession.write(Object) event. Most users don't need to call this method at all. Please use this method only when you implement a new transport or fire a virtual event.



fireMessageReceived
public void fireMessageReceived(Object message)(Code)
Fires a IoFilterChain.fireMessageReceived(Object) event. Most users don't need to call this method at all. Please use this method only when you implement a new transport or fire a virtual event.



fireMessageSent
public void fireMessageSent(WriteRequest request)(Code)
Fires a IoHandler.sessionOpened(IoSession) event. Most users don't need to call this method at all. Please use this method only when you implement a new transport or fire a virtual event.



fireSessionClosed
public void fireSessionClosed()(Code)
Fires a IoHandler.sessionClosed(IoSession) event. Most users don't need to call this method at all. Please use this method only when you implement a new transport or fire a virtual event.



fireSessionCreated
public void fireSessionCreated()(Code)
Fires a IoHandler.sessionCreated(IoSession) event. Most users don't need to call this method at all. Please use this method only when you implement a new transport or fire a virtual event.



fireSessionIdle
public void fireSessionIdle(IdleStatus status)(Code)
Fires a IoHandler.sessionIdle(IoSessionIdleStatus) event. Most users don't need to call this method at all. Please use this method only when you implement a new transport or fire a virtual event.



fireSessionOpened
public void fireSessionOpened()(Code)
Fires a IoHandler.sessionOpened(IoSession) event. Most users don't need to call this method at all. Please use this method only when you implement a new transport or fire a virtual event.



get
IoFilter get(String name)(Code)
Returns the IoFilter with the specified name in this chain. null if there's no such name in this chain



get
IoFilter get(Class<? extends IoFilter> filterType)(Code)
Returns the IoFilter with the specified filterType in this chain. If there's more than one filter with the specified type, the first match will be chosen. null if there's no such name in this chain



getAll
List<Entry> getAll()(Code)
Returns the list of all Entry s this chain contains.



getAllReversed
List<Entry> getAllReversed()(Code)
Returns the reversed list of all Entry s this chain contains.



getEntry
Entry getEntry(String name)(Code)
Returns the Entry with the specified name in this chain. null if there's no such name in this chain



getEntry
Entry getEntry(IoFilter filter)(Code)
Returns the Entry with the specified filter in this chain. null if there's no such filter in this chain



getEntry
Entry getEntry(Class<? extends IoFilter> filterType)(Code)
Returns the Entry with the specified filterType in this chain. If there's more than one filter with the specified type, the first match will be chosen. null if there's no such name in this chain



getNextFilter
NextFilter getNextFilter(String name)(Code)
Returns the NextFilter of the IoFilter with the specified name in this chain. null if there's no such name in this chain



getNextFilter
NextFilter getNextFilter(IoFilter filter)(Code)
Returns the NextFilter of the specified IoFilter in this chain. null if there's no such name in this chain



getNextFilter
NextFilter getNextFilter(Class<? extends IoFilter> filterType)(Code)
Returns the NextFilter of the specified filterType in this chain. If there's more than one filter with the specified type, the first match will be chosen. null if there's no such name in this chain



getSession
IoSession getSession()(Code)
Returns the parent IoSession of this chain. IoSession



remove
IoFilter remove(String name)(Code)
Removes the filter with the specified name from this chain.
throws:
  IoFilterLifeCycleException - if IoFilter.onPostRemove(IoFilterChainStringNextFilter) orIoFilter.destroy throws an exception.



remove
void remove(IoFilter filter)(Code)
Replace the filter with the specified name with the specified new filter.
throws:
  IllegalArgumentException - if there's no such filter



remove
IoFilter remove(Class<? extends IoFilter> filterType)(Code)
Replace the filter of the specified type with the specified new filter. If there's more than one filter with the specified type, the first match will be replaced.
throws:
  IllegalArgumentException - if there's no such filter



replace
IoFilter replace(String name, IoFilter newFilter)(Code)
Replace the filter with the specified name with the specified new filter. the old filter
throws:
  IllegalArgumentException - if there's no such filter



replace
void replace(IoFilter oldFilter, IoFilter newFilter)(Code)
Replace the filter with the specified name with the specified new filter.
throws:
  IllegalArgumentException - if there's no such filter



replace
IoFilter replace(Class<? extends IoFilter> oldFilterType, IoFilter newFilter)(Code)
Replace the filter of the specified type with the specified new filter. If there's more than one filter with the specified type, the first match will be replaced.
throws:
  IllegalArgumentException - if there's no such filter



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