Package netscape.ldap

Class LDAPMessage

java.lang.Object
netscape.ldap.LDAPMessage
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LDAPResponse, LDAPSearchResult, LDAPSearchResultReference

public class LDAPMessage extends Object implements Serializable
Base class for LDAP request and response messages. This class represents the LDAPMessage in RFC2251. The message is the entity that got transferred back and fro between the server and the client interface. Each message has a protocol operation. The protocol operation indicates if it is a request or response.
 LDAPMessage ::= SEQUENCE {
   messageID MessageID,
   protocolOp CHOICE {
     bindRequest BindRequest,
     ...
   }
   controls [0] Controls OPTIONAL
 }
 
Version:
1.0
See Also:
  • Field Details

  • Method Details

    • getMessageID

      public int getMessageID()
      Returns the message identifer.
      Returns:
      message identifer.
    • getType

      public int getType()
      Returns the LDAP operation type of the message
      Returns:
      message type.
    • getControls

      public LDAPControl[] getControls()
      Retrieves list of controls.
      Returns:
      controls.
    • toString

      public String toString()
      Returns string representation of an LDAP message.
      Overrides:
      toString in class Object
      Returns:
      LDAP message.