01: /* ****************************************************************************
02: * SecurityCompiler.java
03: * ****************************************************************************/
04:
05: /* J_LZ_COPYRIGHT_BEGIN *******************************************************
06: * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
07: * Use is subject to license terms. *
08: * J_LZ_COPYRIGHT_END *********************************************************/
09:
10: package org.openlaszlo.compiler;
11:
12: import java.io.*;
13: import java.util.*;
14: import org.jdom.Element;
15: import org.openlaszlo.server.Configuration;
16:
17: /** Represents a compiler for a toplevel <code>security</code> element. */
18: class SecurityCompiler extends ElementCompiler {
19: SecurityCompiler(CompilationEnvironment env) {
20: super (env);
21: }
22:
23: static boolean isElement(Element element) {
24: return element.getName().equals("security");
25: }
26:
27: public void compile(Element element) {
28: mEnv.getCanvas().setSecurityOptions(element);
29: }
30: }
|