1 55 56 package org.jboss.axis.handlers; 57 58 import org.jboss.axis.AxisFault; 59 import org.jboss.axis.MessageContext; 60 import org.jboss.logging.Logger; 61 62 63 68 public class JAXRPCHandler extends BasicHandler 69 { 70 private static Logger log = Logger.getLogger(JAXRPCHandler.class.getName()); 71 72 HandlerChainImpl impl = null; 73 74 public void invoke(MessageContext msgContext) throws AxisFault 75 { 76 log.debug("Enter: JAXRPCHandler::enter invoke"); 77 if (impl == null) 78 { 79 String className = (String )getOption("className"); 80 impl = new HandlerChainImpl(); 81 impl.addNewHandler(className, getOptions()); 82 } 83 if (!msgContext.getPastPivot()) 84 { 85 impl.handleRequest(msgContext); 86 } 87 else 88 { 89 impl.handleResponse(msgContext); 90 } 91 log.debug("Enter: JAXRPCHandler::exit invoke"); 92 } 93 94 public void onFault(MessageContext msgContext) 95 { 96 impl.handleFault(msgContext); 97 } 98 99 public void cleanup() 100 { 101 impl.destroy(); 102 } 103 } 104 | Popular Tags |