public class MyInterceptor extends RemotingInterceptor { @Override public void handle(T message) throws IOException { getNext().handle(message); } } public class MyFilter implements Filter { @Override public void handle(T message) throws IOException { } } <remoting xmlns="urn:jboss:remoting:3.0"> <protocol name="myProtocol"> <property name="myProperty">myValue</property> <interceptors> <interceptor class="com.example.MyInterceptor"/> </interceptors> <filters> <filter class="com.example.MyFilter"/> </filters> </protocol> </remoting>


上一篇:
下一篇:
切换中文