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.JClientRequestInfo; 33 import org.objectweb.carol.rmi.jrmp.interceptor.JClientRequestInterceptor; 34 35 41 public class DummyClientInterceptor implements JClientRequestInterceptor { 42 43 46 private static int SERVER_CTX_ID = 50; 47 48 51 private static int CLIENT_CTX_ID = 51; 52 53 56 private String interceptorName = null; 57 58 62 public DummyClientInterceptor(String name) { 63 interceptorName = name; 64 } 65 66 70 public String name() { 71 return interceptorName; 72 } 73 74 81 public void send_request(JClientRequestInfo jri) throws IOException { 82 jri.add_request_service_context(new DummyClientServiceContext(CLIENT_CTX_ID, java.net.InetAddress 85 .getLocalHost().getHostName())); 86 } 87 88 93 public void receive_reply(JClientRequestInfo jri) throws IOException { 94 98 } 99 100 public void send_poll(JClientRequestInfo jri) throws IOException { 102 } 103 104 public void receive_exception(JClientRequestInfo jri) throws IOException { 105 } 106 107 public void receive_other(JClientRequestInfo jri) throws IOException { 108 } 109 } | Popular Tags |