01: package org.esupportail.cas.server.handlers.nt;
02:
03: import org.dom4j.Element;
04: import org.esupportail.cas.server.util.RedundantHandler;
05:
06: /**
07: * This class implements a Windows NT handler class.
08: *
09: * @author Todd Runstein <todd.runstein at yahoo.com>
10: */
11: public final class NtHandler extends RedundantHandler {
12:
13: /**
14: * The NT domain to bind to.
15: */
16: private String domain;
17:
18: /**
19: * Constructor.
20: *
21: * @param handlerElement the XML element that declares the handler
22: * in the configuration file
23: * @param configDebug debugging mode of the global configuration
24: * @throws Exception Exception
25: */
26: public NtHandler(final Element handlerElement,
27: final Boolean configDebug) throws Exception {
28: super (handlerElement, configDebug);
29: traceBegin();
30:
31: checkConfigElement(true);
32:
33: domain = getConfigSubElementContent("domain", true/*needed*/);
34: trace("domain = " + domain);
35:
36: // add the NtServer instances
37: addServers(true/*serverElementNeeded*/, getClass()
38: .getPackage().getName()
39: + ".NtServer");
40:
41: traceEnd();
42: }
43:
44: }
|