1 28 package org.objectweb.carol.jtests.conform.interceptor.jrmp; 29 30 import java.io.IOException ; 31 32 import org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInfo; 33 import org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInterceptor; 34 35 40 public class DummyServerInterceptor implements JServerRequestInterceptor { 41 42 45 private static int SERVER_CTX_ID = 50; 46 47 50 private static int CLIENT_CTX_ID = 51; 51 52 55 private String interceptorName = null; 56 57 61 public DummyServerInterceptor(String name) { 62 interceptorName = name; 63 } 64 65 70 public void receive_request(JServerRequestInfo jri) throws IOException { 71 } 75 76 81 public void send_reply(JServerRequestInfo jri) throws IOException { 82 jri.add_reply_service_context(new DummyServerServiceContext(SERVER_CTX_ID, java.net.InetAddress.getLocalHost() 85 .getHostName())); 86 } 87 88 92 public String name() { 93 return interceptorName; 94 } 95 96 public void send_exception(JServerRequestInfo jri) throws IOException { 97 } 98 99 public void send_other(JServerRequestInfo jri) throws IOException { 100 } 101 } | Popular Tags |