unixprop.java

来自「很棒的web服务器源代码」· Java 代码 · 共 60 行

JAVA
60
字号
// UnixProp.java// $Id: UnixProp.java,v 1.6 2000/08/16 21:37:41 ylafon Exp $// (c) COPYRIGHT MIT and INRIA, 1996.// Please first read the full copyright statement in file COPYRIGHT.htmlpackage org.w3c.jigsaw.http;import org.w3c.tools.resources.Attribute;import org.w3c.tools.resources.AttributeRegistry;import org.w3c.tools.resources.IntegerAttribute;import org.w3c.tools.resources.StringAttribute;import org.w3c.jigsaw.config.PropertySet;/** * A wrapper class to give access to editable properties through a resource. * This class wraps UNIX specific properties. */class UnixProp extends PropertySet {    private static String title = "Unix properties";    static {	Class     c = null;	Attribute a = null;	try {	    c = Class.forName("org.w3c.jigsaw.http.UnixProp");	} catch (Exception ex) {	    ex.printStackTrace();	    System.exit(1);	}	// Group	a = new StringAttribute(httpd.SERVER_GROUP_P				, null				, Attribute.EDITABLE);	AttributeRegistry.registerAttribute(c, a);	// User	a = new IntegerAttribute(httpd.SERVER_USER_P				 , null				 , Attribute.EDITABLE);	AttributeRegistry.registerAttribute(c, a);    }    /**     * Get this property set title.     * @return A String encoded title.     */    public String getTitle() {	return title;    }    UnixProp(String name, httpd server) {	super(name, server);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?