1 20 package org.apache.mina.common; 21 22 30 public class IoFilterAdapter implements IoFilter { 31 public void init() throws Exception { 32 } 33 34 public void destroy() throws Exception { 35 } 36 37 public void onPreAdd(IoFilterChain parent, String name, 38 NextFilter nextFilter) throws Exception { 39 } 40 41 public void onPostAdd(IoFilterChain parent, String name, 42 NextFilter nextFilter) throws Exception { 43 } 44 45 public void onPreRemove(IoFilterChain parent, String name, 46 NextFilter nextFilter) throws Exception { 47 } 48 49 public void onPostRemove(IoFilterChain parent, String name, 50 NextFilter nextFilter) throws Exception { 51 } 52 53 public void sessionCreated(NextFilter nextFilter, IoSession session) 54 throws Exception { 55 nextFilter.sessionCreated(session); 56 } 57 58 public void sessionOpened(NextFilter nextFilter, IoSession session) 59 throws Exception { 60 nextFilter.sessionOpened(session); 61 } 62 63 public void sessionClosed(NextFilter nextFilter, IoSession session) 64 throws Exception { 65 nextFilter.sessionClosed(session); 66 } 67 68 public void sessionIdle(NextFilter nextFilter, IoSession session, 69 IdleStatus status) throws Exception { 70 nextFilter.sessionIdle(session, status); 71 } 72 73 public void exceptionCaught(NextFilter nextFilter, IoSession session, 74 Throwable cause) throws Exception { 75 nextFilter.exceptionCaught(session, cause); 76 } 77 78 public void messageReceived(NextFilter nextFilter, IoSession session, 79 Object message) throws Exception { 80 nextFilter.messageReceived(session, message); 81 } 82 83 public void messageSent(NextFilter nextFilter, IoSession session, 84 Object message) throws Exception { 85 nextFilter.messageSent(session, message); 86 } 87 88 public void filterWrite(NextFilter nextFilter, IoSession session, 89 WriteRequest writeRequest) throws Exception { 90 nextFilter.filterWrite(session, writeRequest); 91 } 92 93 public void filterClose(NextFilter nextFilter, IoSession session) 94 throws Exception { 95 nextFilter.filterClose(session); 96 } 97 } | Popular Tags |