org.apache.directory.server.core.replication
Enum BindMethod

java.lang.Object
  extended by java.lang.Enum<BindMethod>
      extended by org.apache.directory.server.core.replication.BindMethod
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BindMethod>

public enum BindMethod
extends java.lang.Enum<BindMethod>

An enum used to store the Bind Methods : SIMPLE or SASL

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Enum Constant Summary
SASL
          SASL bind
SIMPLE
          SIMPLE bind
UNKWNOWN
          Unkwnon bind method
 
Method Summary
static BindMethod getInstance(java.lang.String bindMethod)
           
static BindMethod valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BindMethod[] 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

SIMPLE

public static final BindMethod SIMPLE
SIMPLE bind


SASL

public static final BindMethod SASL
SASL bind


UNKWNOWN

public static final BindMethod UNKWNOWN
Unkwnon bind method

Method Detail

values

public static BindMethod[] 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 (BindMethod c : BindMethod.values())
    System.out.println(c);

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

valueOf

public static BindMethod valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getInstance

public static BindMethod getInstance(java.lang.String bindMethod)


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