1 16 package org.mortbay.j2ee.session; 17 18 20 import java.rmi.RemoteException ; 21 import java.util.Enumeration ; 22 import java.util.Map ; 23 24 import org.jfox.ioc.logger.Logger; 25 26 32 public class 33 DebugInterceptor 34 extends StateInterceptor 35 { 36 protected static final Logger _log=Logger.getLogger(DebugInterceptor.class); 37 38 public String 40 getId() 41 throws RemoteException 42 { 43 _log.info("getId() -> ()"); 44 String tmp=super.getId(); 45 _log.info("getId() <- "+tmp); 46 return tmp; 47 } 48 49 public int 50 getActualMaxInactiveInterval() 51 throws RemoteException 52 { 53 _log.info("getActualMaxInactiveInterval() -> ()"); 54 int tmp=super.getActualMaxInactiveInterval(); 55 _log.info("getActualMaxInactiveInterval() <- "+tmp); 56 return tmp; 57 } 58 59 public long 60 getCreationTime() 61 throws RemoteException 62 { 63 _log.info("getCreationTime() -> ()"); 64 long tmp=super.getCreationTime(); 65 _log.info("getCreationTime() <- "+tmp); 66 return tmp; 67 } 68 69 70 public Map 72 getAttributes() 73 throws RemoteException 74 { 75 _log.info("getAttributes() -> ()"); 76 Map tmp=super.getAttributes(); 77 _log.info("getAttributes() <- "+tmp); 78 return tmp; 79 } 80 81 public void 82 setAttributes(Map attributes) 83 throws RemoteException 84 { 85 _log.info("setAttributes() -> ("+attributes+")"); 86 super.setAttributes(attributes); 87 _log.info("setAttributes() <- "); 88 } 89 90 public long 91 getLastAccessedTime() 92 throws RemoteException 93 { 94 _log.info("getLastAccessedTime() -> ()"); 95 long tmp=super.getLastAccessedTime(); 96 _log.info("getLastAccessedTime() <- "+tmp); 97 return tmp; 98 } 99 100 public void 101 setLastAccessedTime(long time) 102 throws RemoteException 103 { 104 _log.info("setLastAccessedTime() -> ("+time+")"); 105 super.setLastAccessedTime(time); 106 _log.info("setLastAccessedTime() <- "); 107 } 108 109 public int 110 getMaxInactiveInterval() 111 throws RemoteException 112 { 113 _log.info("getMaxInactiveInterval() -> ()"); 114 int tmp=super.getMaxInactiveInterval(); 115 _log.info("getMaxInactiveInterval() <- "+tmp); 116 return tmp; 117 } 118 119 public void 120 setMaxInactiveInterval(int interval) 121 throws RemoteException 122 { 123 _log.info("setMaxInactiveInterval() -> ("+interval+")"); 124 super.setMaxInactiveInterval(interval); 125 _log.info("setMaxInactiveInterval() <- "); 126 } 127 128 129 public Object 131 getAttribute(String name) 132 throws RemoteException 133 { 134 _log.info("getAttribute() -> ("+name+")"); 135 Object tmp=super.getAttribute(name); 136 _log.info("getAttribute() <- "+tmp); 137 return tmp; 138 } 139 140 public Object 141 setAttribute(String name, Object value, boolean returnValue) 142 throws RemoteException 143 { 144 _log.info("setAttribute() -> ("+name+","+value+","+returnValue+")"); 145 Object tmp=super.setAttribute(name,value,returnValue); 146 _log.info("setAttribute() <- "+tmp); 147 return tmp; 148 } 149 150 public Object 151 removeAttribute(String name, boolean returnValue) 152 throws RemoteException 153 { 154 _log.info("removeAttribute() -> ("+name+","+returnValue+")"); 155 Object tmp=super.removeAttribute(name,returnValue); 156 _log.info("removeAttribute() <- "+tmp); 157 return tmp; 158 } 159 160 public Enumeration 161 getAttributeNameEnumeration() 162 throws RemoteException 163 { 164 _log.info("getAttributeNameEnumeration() -> ()"); 165 Enumeration tmp=super.getAttributeNameEnumeration(); 166 _log.info("getAttributeNameEnumeration() <- "+tmp); 167 return tmp; 168 } 169 170 public String [] 171 getAttributeNameStringArray() 172 throws RemoteException 173 { 174 _log.info("getAttributeNameStringArray() -> ()"); 175 String [] tmp=super.getAttributeNameStringArray(); 176 _log.info("getAttributeNameStringArray() <- "+tmp); 177 return tmp; 178 } 179 180 public boolean 181 isValid() 182 throws RemoteException 183 { 184 _log.info("isValid() -> ()"); 185 boolean tmp=super.isValid(); 186 _log.info("isValid() <- "+tmp); 187 return tmp; 188 } 189 190 } 192 | Popular Tags |