File:
[Public] /
java /
classes /
org /
w3c /
jigsaw /
acl /
HTTPPermission.java
Revision
1.3:
download - view:
text,
annotated -
select for diffs
Wed Aug 16 21:37:33 2000 UTC (23 years, 10 months ago) by
ylafon
Branches:
MAIN
CVS tags:
rel-2-2,
R_2_2_6_B0,
R_2_2_5_B0,
R_2_2_4_B0,
R_2_2_3_B1,
R_2_2_2_B0,
R_2_2_1_B0,
R_2_2_0_B0,
HEAD
Fixed import statements and removed extra empty lines
// HTTPPermission.java
// $Id: HTTPPermission.java,v 1.3 2000/08/16 21:37:33 ylafon 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.3 $
* @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());
} else {
return method.equals(another.toString());
}
}
public String toString() {
return method+" permission";
}
}
Webmaster