1 22 package org.jboss.test.webservice.handlerflow; 23 24 import javax.xml.namespace.QName ; 25 import javax.xml.rpc.handler.GenericHandler ; 26 import javax.xml.rpc.handler.HandlerInfo ; 27 import javax.xml.rpc.handler.MessageContext ; 28 29 public class HandlerBase extends GenericHandler 30 { 31 protected QName [] headers; 32 33 public QName [] getHeaders() 34 { 35 return headers; 36 } 37 38 public void init(HandlerInfo config) 39 { 40 headers = config.getHeaders(); 41 HandlerTracker.trackInit(this); 42 } 43 44 public void destroy() 45 { 46 HandlerTracker.trackDestroy(this); 47 } 48 49 public boolean handleRequest(MessageContext msgContext) 50 { 51 HandlerTracker.trackHandleRequest(this); 52 return true; 53 } 54 55 public boolean handleResponse(MessageContext msgContext) 56 { 57 HandlerTracker.trackHandleResponse(this); 58 return true; 59 } 60 61 public boolean handleFault(MessageContext msgContext) 62 { 63 HandlerTracker.trackHandleFault(this); 64 return true; 65 } 66 } 67 | Popular Tags |