File:  [Public] / java / classes / org / w3c / jigsaw / acl / HTTPPermission.java
Revision 1.1: download - view: text, annotated - select for diffs
Wed Apr 21 16:07:06 1999 UTC (25 years, 2 months ago) by bmahe
Branches: MAIN
CVS tags: HEAD
AclFilter almost done

// HTTPPermission.java
// $Id: HTTPPermission.java,v 1.1 1999/04/21 16:07:06 bmahe Exp $
// (c) COPYRIGHT MIT, INRIA and Keio, 1999.
// Please first read the full copyright statement in file COPYRIGHT.html
 
package org.w3c.jigsaw.acl;

import java.security.acl.Permission;

import org.w3c.jigsaw.http.Request;

/**
 * @version $Revision: 1.1 $
 * @author  Benoît Mahé (bmahe@w3.org)
 */
public class HTTPPermission implements Permission {
    
    protected String method = null;

    protected String getMethod() {
	return method;
    }

    public HTTPPermission(Request request) {
	this.method = request.getMethod();
    }

    public boolean equals(Object another) {
	if (another instanceof HTTPPermission) {
	    return method.equals(((HTTPPermission)another).getMethod());
	}
	return false;
    }

    public String toString() {
	return method+" permission";
    }

}

Webmaster