1 28 package org.objectweb.carol.rmi.jrmp.interceptor; 29 30 import java.io.IOException ; 32 33 import org.objectweb.carol.util.configuration.ConfigurationRepository; 34 35 41 public class ProtocolInterceptor implements JServerRequestInterceptor { 42 43 46 private String interceptorName = null; 47 48 52 public ProtocolInterceptor() { 53 interceptorName = "protocol interceptor xxxx1"; 54 } 55 56 60 public String name() { 61 return interceptorName; 62 } 63 64 69 public void receive_request(JServerRequestInfo jri) throws IOException { 70 ConfigurationRepository.setCurrentConfiguration(ConfigurationRepository.getConfiguration("jrmp")); 71 } 72 73 78 public void send_reply(JServerRequestInfo jri) throws IOException { 79 } 81 82 public void send_exception(JServerRequestInfo jri) throws IOException { 83 } 85 86 public void send_other(JServerRequestInfo jri) throws IOException { 87 } 89 } | Popular Tags |