org.apache.ftpserver.usermanager.impl
Class ConcurrentLoginRequest

java.lang.Object
  extended by org.apache.ftpserver.usermanager.impl.ConcurrentLoginRequest
All Implemented Interfaces:
AuthorizationRequest

public class ConcurrentLoginRequest
extends java.lang.Object
implements AuthorizationRequest

Internal class, do not use directly. Class representing a request to log in a number of concurrent times

Version:
$Rev$, $Date$
Author:
The Apache MINA Project (dev@mina.apache.org)

Constructor Summary
ConcurrentLoginRequest(int concurrentLogins, int concurrentLoginsFromThisIP)
           
 
Method Summary
 int getConcurrentLogins()
          The number of concurrent logins requested
 int getConcurrentLoginsFromThisIP()
          The number of concurrent logins from this IP requested
 int getMaxConcurrentLogins()
          The maximum allowed concurrent logins for this user, or 0 if no limit is set.
 int getMaxConcurrentLoginsPerIP()
          The maximum allowed concurrent logins per IP for this user, or 0 if no limit is set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcurrentLoginRequest

public ConcurrentLoginRequest(int concurrentLogins,
                              int concurrentLoginsFromThisIP)
Parameters:
concurrentLogins -
concurrentLoginsFromThisIP -
Method Detail

getConcurrentLogins

public int getConcurrentLogins()
The number of concurrent logins requested

Returns:
the concurrentLogins The number of current concurrent logins

getConcurrentLoginsFromThisIP

public int getConcurrentLoginsFromThisIP()
The number of concurrent logins from this IP requested

Returns:
the concurrentLoginsFromThisIP The number of current concurrent logins from this IP

getMaxConcurrentLogins

public int getMaxConcurrentLogins()
The maximum allowed concurrent logins for this user, or 0 if no limit is set. This is normally populated by ConcurrentLoginPermission

Returns:
The maximum allowed concurrent logins

getMaxConcurrentLoginsPerIP

public int getMaxConcurrentLoginsPerIP()
The maximum allowed concurrent logins per IP for this user, or 0 if no limit is set. This is normally populated by ConcurrentLoginPermission

Returns:
The maximum allowed concurrent logins per IP


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.