package org.picketlink.identity.federation.core.handler.config; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * <p> * Java class for Handlers complex type. * * <p> * The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="Handlers"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="Handler" type="{urn:picketlink:identity-federation:handler:config:1.0}Handler" maxOccurs="unbounded"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ public class Handlers { protected String handlerChainClass; protected List<Handler> handler = new ArrayList<Handler>(); public void add(Handler h) { this.handler.add(h); } public void remove(Handler h) { this.handler.remove(h); } /** * Gets the value of the handler property. * <p> * Objects of the following type(s) are allowed in the list {@link Handler } * * */ public List<Handler> getHandler() { return Collections.unmodifiableList(this.handler); } /** * <p> * Sets the Handler chain class. * </p> * * @param samlHandlerChainClass value must be a subclass of #{@link SAML2HandlerChain} */ public void setHandlerChainClass(String samlHandlerChainClass) { this.handlerChainClass = samlHandlerChainClass; } /** * Get the Handler chain class FQN * @return */ public String getHandlerChainClass() { return this.handlerChainClass; } /** * Set the list of {@link Handler} * @param theHandlers */ public void setHandlers(List<Handler> theHandlers){ handler.addAll(theHandlers); } }