1 25 package org.objectweb.jonas.jtests.appclients.timeclient; 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 33 34 39 public class TimeClientHandler extends GenericHandler { 40 41 44 public void init(HandlerInfo hinfo) { 45 String val = (String ) hinfo.getHandlerConfig().get("jonas.test.client.handler"); 46 StaticPassValue spv = StaticPassValue.getInstance(); 47 spv.setInitValue(val); 48 } 49 50 51 54 public boolean handleRequest(MessageContext mc) { 55 StaticPassValue spv = StaticPassValue.getInstance(); 56 spv.setRequestValue("handlerRequest-Invoked"); 57 return true; 58 } 59 60 63 public boolean handleResponse(MessageContext mc) { 64 StaticPassValue spv = StaticPassValue.getInstance(); 65 spv.setResponseValue("handleResponse-Invoked"); 66 return true; 67 } 68 69 72 public QName [] getHeaders() { 73 return new QName [0]; 74 } 75 } 76 | Popular Tags |