001    package org.esupportail.cas.server.handlers.nt;
002    
003    import org.dom4j.Element;
004    import org.esupportail.cas.server.util.RedundantHandler;
005    
006    /**
007     * This class implements a Windows NT handler class.
008     *
009     * @author Todd Runstein <todd.runstein at yahoo.com>
010     */
011    public final class NtHandler extends RedundantHandler {
012            
013            /**
014             * The NT domain to bind to.
015             */
016            private String domain;
017            
018            /**
019             * Constructor.
020             *
021             * @param handlerElement the XML element that declares the handler 
022             * in the configuration file
023             * @param configDebug debugging mode of the global configuration
024             * @throws Exception Exception
025             */
026            public NtHandler(
027                            final Element handlerElement, 
028                            final Boolean configDebug) throws Exception {
029                    super(handlerElement, configDebug);
030                    traceBegin();
031    
032                    checkConfigElement(true);
033                    
034                    domain = getConfigSubElementContent("domain", true/*needed*/);
035                    trace("domain = " + domain);
036    
037                    // add the NtServer instances
038                    addServers(true/*serverElementNeeded*/, getClass().getPackage().getName() + ".NtServer");
039    
040                    traceEnd();
041            }
042    
043    }
044