01: // UnixProp.java
02: // $Id: UnixProp.java,v 1.6 2000/08/16 21:37:41 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1996.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.jigsaw.http;
07:
08: import org.w3c.tools.resources.Attribute;
09: import org.w3c.tools.resources.AttributeRegistry;
10: import org.w3c.tools.resources.IntegerAttribute;
11: import org.w3c.tools.resources.StringAttribute;
12:
13: import org.w3c.jigsaw.config.PropertySet;
14:
15: /**
16: * A wrapper class to give access to editable properties through a resource.
17: * This class wraps UNIX specific properties.
18: */
19:
20: class UnixProp extends PropertySet {
21: private static String title = "Unix properties";
22:
23: static {
24: Class c = null;
25: Attribute a = null;
26:
27: try {
28: c = Class.forName("org.w3c.jigsaw.http.UnixProp");
29: } catch (Exception ex) {
30: ex.printStackTrace();
31: System.exit(1);
32: }
33: // Group
34: a = new StringAttribute(httpd.SERVER_GROUP_P, null,
35: Attribute.EDITABLE);
36: AttributeRegistry.registerAttribute(c, a);
37: // User
38: a = new IntegerAttribute(httpd.SERVER_USER_P, null,
39: Attribute.EDITABLE);
40: AttributeRegistry.registerAttribute(c, a);
41: }
42:
43: /**
44: * Get this property set title.
45: * @return A String encoded title.
46: */
47:
48: public String getTitle() {
49: return title;
50: }
51:
52: UnixProp(String name, httpd server) {
53: super(name, server);
54: }
55: }
|