1 16 17 package org.apache.axis2.engine; 18 19 import org.apache.axis2.context.MessageContext; 20 import org.apache.axis2.handlers.AbstractHandler; 21 import org.apache.commons.logging.Log; 22 import org.apache.commons.logging.LogFactory; 23 24 import javax.xml.namespace.QName ; 25 26 public class SpeakingHandler extends AbstractHandler implements Handler { 27 private Log log = LogFactory.getLog(getClass()); 28 private String message; 29 private QName name; 30 31 public SpeakingHandler() { 32 this.message = "Hi I amtesting "; 33 } 34 35 public QName getName() { 36 return name; 37 } 38 39 public void invoke(MessageContext msgContext) throws AxisFault { 40 log.info("I am " + message + " Handler Running :)"); 41 } 42 43 public void revoke(MessageContext msgContext) { 44 log.info("I am " + message + " Handler Running :)"); 45 } 46 47 public void setName(QName name) { 48 this.name = name; 49 } 50 51 } 52 | Popular Tags |