1 package org.apache.axis2.phaserule; 2 3 import org.apache.axis2.context.MessageContext; 4 import org.apache.axis2.engine.AxisFault; 5 import org.apache.axis2.engine.Handler; 6 import org.apache.axis2.handlers.AbstractHandler; 7 import org.apache.commons.logging.Log; 8 import org.apache.commons.logging.LogFactory; 9 10 import javax.xml.namespace.QName ; 11 12 29 30 35 public class PhaseRuleHandlers extends AbstractHandler implements Handler { 36 37 private Log log = LogFactory.getLog(getClass()); 38 private String message; 39 private QName name; 40 41 public PhaseRuleHandlers() { 42 this.message = "inside service 2"; 43 } 44 45 public QName getName() { 46 return name; 47 } 48 49 public void invoke(MessageContext msgContext) throws AxisFault { 50 System.out.println("I am " + name + " Handler Running :)"); 51 log.info("I am " + name + " Handler Running :)"); 52 } 53 54 public void revoke(MessageContext msgContext) { 55 log.info("I am " + name + " Handler Running :)"); 56 } 57 58 public void setName(QName name) { 59 this.name = name; 60 } 61 } 62 | Popular Tags |