org.apache.ftpserver.ipfilter
Enum IpFilterType

java.lang.Object
  extended by java.lang.Enum<IpFilterType>
      extended by org.apache.ftpserver.ipfilter.IpFilterType
All Implemented Interfaces:
Serializable, Comparable<IpFilterType>

public enum IpFilterType
extends Enum<IpFilterType>

Defines various types of IP Filters.

Author:
Apache MINA Project

Enum Constant Summary
ALLOW
          filter type that allows a set of predefined IP addresses, also known as a white list.
DENY
          filter type that blocks a set of predefined IP addresses, also known as a black list.
 
Method Summary
static IpFilterType parse(String value)
          Parses the given string into its equivalent enum.
static IpFilterType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IpFilterType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALLOW

public static final IpFilterType ALLOW
filter type that allows a set of predefined IP addresses, also known as a white list.


DENY

public static final IpFilterType DENY
filter type that blocks a set of predefined IP addresses, also known as a black list.

Method Detail

values

public static IpFilterType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IpFilterType c : IpFilterType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IpFilterType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

parse

public static IpFilterType parse(String value)
Parses the given string into its equivalent enum.

Parameters:
value - the string value to parse.
Returns:
the equivalent enum


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