new Class for UserAccounts

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@813 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent 138d218d5b
commit 9e1485c13b

@ -0,0 +1,22 @@
import java.net.InetAddress;
public final class httpdProxyAccount {
String username;
InetAddress ip;
int timeLimit; //max. Time for this user
int timeUsed;
boolean timeBlock; //count linear or only activity?
public httpdProxyAccount(InetAddress myip){
ip=myip;
timeLimit=0;
timeUsed=0;
timeBlock=false;
}
public httpdProxyAccount(InetAddress myip, int mytimeLimit){
ip=myip;
timeLimit=mytimeLimit;
timeUsed=0;
timeBlock=false;
}
}

@ -119,6 +119,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
private File htRootPath = null;
private static boolean doAccessLogging = false;
private static HashSet users = null;
/**
* Do logging configuration for special proxy access log file
@ -168,6 +169,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
} catch (Exception e) {
serverLog.logSevere("PROXY","Unable to configure proxy access logging.",e);
}
users = new HashSet();
}
/**
@ -1391,4 +1393,4 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt
http://xlists.aza.org/moderator/cookietest/cookietest1.php
http://vancouver-webpages.com/proxy/cache-test.html
*/
*/

Loading…
Cancel
Save