1 20 package org.apache.mina.common; 21 22 import java.util.List ; 23 24 import org.apache.mina.common.IoFilter.NextFilter; 25 import org.apache.mina.common.IoFilter.WriteRequest; 26 27 35 public interface IoFilterChain { 36 40 IoSession getSession(); 41 42 46 Entry getEntry(String name); 47 48 52 IoFilter get(String name); 53 54 59 NextFilter getNextFilter(String name); 60 61 64 List <Entry> getAll(); 65 66 69 List <Entry> getAllReversed(); 70 71 75 boolean contains(String name); 76 77 80 boolean contains(IoFilter filter); 81 82 86 boolean contains(Class <? extends IoFilter> filterType); 87 88 94 void addFirst(String name, IoFilter filter); 95 96 102 void addLast(String name, IoFilter filter); 103 104 111 void addBefore(String baseName, String name, IoFilter filter); 112 113 120 void addAfter(String baseName, String name, IoFilter filter); 121 122 128 IoFilter remove(String name); 129 130 134 void clear() throws Exception ; 135 136 141 public void fireSessionCreated(IoSession session); 142 143 148 public void fireSessionOpened(IoSession session); 149 150 155 public void fireSessionClosed(IoSession session); 156 157 162 public void fireSessionIdle(IoSession session, IdleStatus status); 163 164 169 public void fireMessageReceived(IoSession session, Object message); 170 171 176 public void fireMessageSent(IoSession session, WriteRequest request); 177 178 183 public void fireExceptionCaught(IoSession session, Throwable cause); 184 185 190 public void fireFilterWrite(IoSession session, WriteRequest writeRequest); 191 192 197 public void fireFilterClose(IoSession session); 198 199 205 public interface Entry { 206 209 String getName(); 210 211 214 IoFilter getFilter(); 215 216 221 NextFilter getNextFilter(); 222 } 223 } 224 | Popular Tags |