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
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
void
addAfter(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.
void
addBefore(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.
void
addFirst(String name, IoFilter filter) Adds the specified filter with the specified name at the beginning of this chain.
void
addLast(String name, IoFilter filter) Adds the specified filter with the specified name at the end of this chain.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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
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
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 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