addAfter
public 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.
addBefore
public 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.
addFirst
public void addFirst(String name,
IoFilter filter)
Adds the specified filter with the specified name at the beginning of this chain.
addLast
public void addLast(String name,
IoFilter filter)
Adds the specified filter with the specified name at the end of this chain.
clear
public void clear()
throws Exception
Removes all filters added to this chain.
contains
public boolean contains(IoFilter> filterType)
Returns
true if this chain contains an
IoFilter
of the
specified
filterType.
contains
public boolean contains(String name)
Returns
true if this chain contains an
IoFilter
with the
specified
name.
contains
public boolean contains(IoFilter filter)
Returns true if this chain contains the specified filter.
fireExceptionCaught
public void fireExceptionCaught(IoSession session,
Throwable cause)
fireFilterClose
public void fireFilterClose(IoSession session)
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.
fireFilterWrite
public void fireFilterWrite(IoSession session,
IoFilter.WriteRequest writeRequest)
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(IoSession session,
Object message)
Fires a
fireMessageReceived(IoSession,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.
fireSessionClosed
public void fireSessionClosed(IoSession session)
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(IoSession session)
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.
fireSessionOpened
public void fireSessionOpened(IoSession session)
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
public IoFilter get(String name)
Returns the
IoFilter
with the specified
name in this chain.
- null if there's no such name in this chain
getAll
public List getAll()
getAllReversed
public List getAllReversed()
getEntry
public IoFilterChain.Entry getEntry(String name)
- null if there's no such name in this chain
getNextFilter
public IoFilter.NextFilter getNextFilter(String name)
- null if there's no such name in this chain
remove
public IoFilter remove(String name)
Removes the filter with the specified name from this chain.