FileDocCategorySizeDatePackage
HandlerResolverImpl.javaAPI DocGlassfish v2 API3479Fri May 04 22:36:10 BST 2007com.sun.enterprise.webservice

HandlerResolverImpl

public class HandlerResolverImpl extends Object implements HandlerResolver
This implements the HandlerResolver interface introduced in JAXWS

Fields Summary
private Map
chainMap
Constructors Summary
public HandlerResolverImpl()

        chainMap = new HashMap<PortInfo, List<Handler>>();
    
Methods Summary
public java.util.ListgetHandlerChain(javax.xml.ws.handler.PortInfo info)

        Iterator<PortInfo> piSet = chainMap.keySet().iterator();
        List<Handler> chain = null;
        while(piSet.hasNext()) {
            PortInfo next = piSet.next();
            PortInfoImpl tmp = 
                new PortInfoImpl(BindingID.parse(info.getBindingID()),
                info.getPortName(), info.getServiceName());
            if(tmp.equals(next)) {
                chain = chainMap.get(next);
                break;
            }
        }
        if (chain == null) {
            chain = new ArrayList<Handler>();
        }
        return chain;
    
public voidsetHandlerChain(javax.xml.ws.handler.PortInfo info, java.util.List chain)

        List<Handler> currentList = chainMap.get(info);
        if(currentList==null) {
            chainMap.put(info, chain);
        } else {
            currentList.addAll(chain);
        }