|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.util.POP3BeforeSMTPHelper
public class POP3BeforeSMTPHelper
Helper class which is used to store ipAddresses and timestamps for pop before smtp support.
| Field Summary | |
|---|---|
static long |
EXPIRE_TIME
Default expire time in ms (1 hour) |
static java.util.Map |
ipMap
The map in which the ipAddresses and timestamp stored |
| Method Summary | |
|---|---|
static void |
addIPAddress(java.lang.String ipAddress)
Add the ipAddress to the authorized ipAddresses |
static void |
clearIP()
Remove all ipAddresses from the authorized map |
static boolean |
isAuthorized(java.lang.String ipAddress)
Return true if the ip is authorized to relay |
static void |
removeExpiredIP()
|
static void |
removeExpiredIP(long clearTime)
Remove all ipAddress from the authorized map which are older then the given time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.Map ipMap
public static final long EXPIRE_TIME
| Method Detail |
|---|
public static boolean isAuthorized(java.lang.String ipAddress)
ipAddress - The ipAddress
public static void addIPAddress(java.lang.String ipAddress)
ipAddress - The ipAddresspublic static void removeExpiredIP()
removeExpiredIP(long)public static void removeExpiredIP(long clearTime)
clearTime - The time in milliseconds after which an ipAddress should be
handled as expiredpublic static void clearIP()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||