1 /* 2 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 3 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. 4 */ 5 6 package javax.xml.ws.handler; 7 8 /** 9 * <code>HandlerResolver</code> is an interface implemented 10 * by an application to get control over the handler chain 11 * set on proxy/dispatch objects at the time of their creation. 12 * <p> 13 * A <code>HandlerResolver</code> may be set on a <code>Service</code> 14 * using the <code>setHandlerResolver</code> method. 15 * <p> 16 * When the runtime invokes a <code>HandlerResolver</code>, it will 17 * pass it a <code>PortInfo</code> object containing information 18 * about the port that the proxy/dispatch object will be accessing. 19 * 20 * @see javax.xml.ws.Service#setHandlerResolver 21 * 22 * @since JAX-WS 2.0 23 **/ 24 public interface HandlerResolver { 25 26 /** 27 * Gets the handler chain for the specified port. 28 * 29 * @param portInfo Contains information about the port being accessed. 30 * @return java.util.List<Handler> chain 31 **/ 32 public java.util.List<Handler> getHandlerChain(PortInfo portInfo); 33 } 34