org.apache.directory.shared.ldap.message
Enum MessageTypeEnum

java.lang.Object
  extended by java.lang.Enum<MessageTypeEnum>
      extended by org.apache.directory.shared.ldap.message.MessageTypeEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MessageTypeEnum>

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

Type safe enumeration over the various LDAPv3 message types.

Version:
$Revision: 476948 $
Author:
Apache Directory Project

Enum Constant Summary
ABANDON_REQUEST
          Abandon request protocol message type value
ADD_REQUEST
          Add request protocol message type value
ADD_RESPONSE
          Add response protocol message type value
BIND_REQUEST
          Bind request protocol message type value
BIND_RESPONSE
          Bind response protocol message type value
COMPARE_REQUEST
          Compare request protocol message type value
COMPARE_RESPONSE
          Compare response protocol message type value
DEL_REQUEST
          Delete request protocol message type value
DEL_RESPONSE
          Delete response protocol message type value
EXTENDED_REQ
          Extended request protocol message type value
EXTENDED_RESP
          Extended response protocol message type value
MOD_DN_REQUEST
          Modify DN request protocol message type value
MOD_DN_RESPONSE
          Modify DN response protocol message type value
MODIFY_REQUEST
          Modify request protocol message type value
MODIFY_RESPONSE
          Modify response protocol message type value
SEARCH_REQUEST
          Search request protocol message type value
SEARCH_RES_DONE
          Search done response protocol message type value
SEARCH_RES_ENTRY
          Search entry response protocol message type value
SEARCH_RES_REF
          Search reference response protocol message type value
UNBIND_REQUEST
          Unbind request protocol message type value
 
Method Summary
 int getMessageType()
           
static MessageTypeEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MessageTypeEnum[] 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

BIND_REQUEST

public static final MessageTypeEnum BIND_REQUEST
Bind request protocol message type value


BIND_RESPONSE

public static final MessageTypeEnum BIND_RESPONSE
Bind response protocol message type value


UNBIND_REQUEST

public static final MessageTypeEnum UNBIND_REQUEST
Unbind request protocol message type value


SEARCH_REQUEST

public static final MessageTypeEnum SEARCH_REQUEST
Search request protocol message type value


SEARCH_RES_ENTRY

public static final MessageTypeEnum SEARCH_RES_ENTRY
Search entry response protocol message type value


SEARCH_RES_DONE

public static final MessageTypeEnum SEARCH_RES_DONE
Search done response protocol message type value


SEARCH_RES_REF

public static final MessageTypeEnum SEARCH_RES_REF
Search reference response protocol message type value


MODIFY_REQUEST

public static final MessageTypeEnum MODIFY_REQUEST
Modify request protocol message type value


MODIFY_RESPONSE

public static final MessageTypeEnum MODIFY_RESPONSE
Modify response protocol message type value


ADD_REQUEST

public static final MessageTypeEnum ADD_REQUEST
Add request protocol message type value


ADD_RESPONSE

public static final MessageTypeEnum ADD_RESPONSE
Add response protocol message type value


DEL_REQUEST

public static final MessageTypeEnum DEL_REQUEST
Delete request protocol message type value


DEL_RESPONSE

public static final MessageTypeEnum DEL_RESPONSE
Delete response protocol message type value


MOD_DN_REQUEST

public static final MessageTypeEnum MOD_DN_REQUEST
Modify DN request protocol message type value


MOD_DN_RESPONSE

public static final MessageTypeEnum MOD_DN_RESPONSE
Modify DN response protocol message type value


COMPARE_REQUEST

public static final MessageTypeEnum COMPARE_REQUEST
Compare request protocol message type value


COMPARE_RESPONSE

public static final MessageTypeEnum COMPARE_RESPONSE
Compare response protocol message type value


ABANDON_REQUEST

public static final MessageTypeEnum ABANDON_REQUEST
Abandon request protocol message type value


EXTENDED_REQ

public static final MessageTypeEnum EXTENDED_REQ
Extended request protocol message type value


EXTENDED_RESP

public static final MessageTypeEnum EXTENDED_RESP
Extended response protocol message type value

Method Detail

values

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

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

valueOf

public static MessageTypeEnum 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

getMessageType

public int getMessageType()
Returns:
The integer associated with the result code


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