1 25 package org.objectweb.jonas.jtests.beans.time; 26 27 import javax.xml.namespace.QName ; 28 import javax.xml.rpc.handler.GenericHandler ; 29 import javax.xml.rpc.handler.HandlerInfo ; 30 import javax.xml.rpc.handler.MessageContext ; 31 32 import org.objectweb.jonas.common.Log; 33 import org.objectweb.util.monolog.api.BasicLevel; 34 import org.objectweb.util.monolog.api.Logger; 35 36 37 42 public class TimeBeanHandler extends GenericHandler { 43 44 private Logger logger = null; 45 46 51 public void init(HandlerInfo hinfo) { 52 if (logger == null) { 53 logger = Log.getLogger("org.objectweb.jonas_tests"); 54 } 55 logger.log(BasicLevel.DEBUG, ""); 56 String val = (String ) hinfo.getHandlerConfig().get("jonas.test.server.handler"); 57 StaticPassValue spv = StaticPassValue.getInstance(); 58 spv.setInitValue(val); 59 } 60 61 65 public void destroy() { 66 logger.log(BasicLevel.DEBUG, ""); 67 } 68 69 77 public boolean handleRequest(MessageContext mc) { 78 logger.log(BasicLevel.DEBUG, ""); 79 StaticPassValue spv = StaticPassValue.getInstance(); 80 spv.setRequestValue("handlerRequest-Invoked"); 81 return true; 82 } 83 84 92 public boolean handleResponse(MessageContext context) { 93 logger.log(BasicLevel.DEBUG, ""); 94 return true; 95 } 96 97 106 public boolean handleFault(MessageContext context) { 107 logger.log(BasicLevel.DEBUG, ""); 108 return true; 109 } 110 111 117 public QName [] getHeaders() { 118 logger.log(BasicLevel.DEBUG, ""); 119 return new QName [0]; 120 } 121 122 } 123 | Popular Tags |