org.mortbay.http.handler
public class IPAccessHandler extends AbstractHttpHandler
Version: v0.1 2002/03/20
Constructor Summary | |
---|---|
IPAccessHandler()
Constructor for the class |
Method Summary | |
---|---|
boolean | checkIP(String ipstring)
Checks if the given ipstring (x.x.x.x) is authorized or not
|
void | handle(String pathInContext, String pathParams, HttpRequest request, HttpResponse response)
Handles the incoming request
|
void | setAllowIP(String ipstring)
Allow the given ip-address access
|
void | setDenyIP(String ipstring)
Deny the given ip-address access
|
void | setStandard(String s)
Set the standard action beeing taken when not registred IPs wants access
|
Parameters: ipstring The ip-address as a String
Returns: True if the IP is allowed access, otherwise false.
Parameters: pathInContext pathParams request The incoming HTTP-request response The outgoing HTTP-response
Parameters: ipstring The ip-address as a String on the format "x.x.x.x"
Parameters: ipstring The ip-address as a String on the format "x.x.x.x"
Parameters: s The standard-string (either 'allow' or 'deny')