1 16 17 package org.apache.axis.handlers; 18 19 import javax.xml.rpc.handler.HandlerChain ; 20 import java.util.ArrayList ; 21 import java.util.List ; 22 import java.util.Map ; 23 import java.io.Serializable ; 24 25 public class HandlerInfoChainFactory implements Serializable { 26 27 protected List handlerInfos = new ArrayList (); 28 protected String [] _roles = null; 29 30 public HandlerInfoChainFactory() { 31 } 32 33 public HandlerInfoChainFactory(List handlerInfos) { 34 this.handlerInfos = handlerInfos; 35 } 36 37 public List getHandlerInfos() { 38 return this.handlerInfos; 39 } 40 41 public HandlerChain createHandlerChain() { 42 HandlerChain hc = new HandlerChainImpl(handlerInfos); 43 hc.setRoles(getRoles()); 44 return hc; 45 46 } 47 48 public String [] getRoles() { 49 return _roles; 50 } 51 52 public void setRoles(String [] roles) { 53 _roles = roles; 54 } 55 56 public void init(Map map) { 57 } 59 } 60 61 | Popular Tags |