netscape.ldap
Class LDAPMessage
java.lang.Object
|
+--netscape.ldap.LDAPMessage
- Direct Known Subclasses:
- LDAPResponse, LDAPSearchResult, LDAPSearchResultReference
- public class LDAPMessage
- extends java.lang.Object
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
}
Method Summary |
LDAPControl[] |
getControls()
Retrieves list of controls. |
int |
getID()
Returns the message identifer. |
int |
getType()
Returns the LDAP operation type of the message |
java.lang.String |
toString()
Returns string representation of an LDAP message. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
BIND_REQUEST
public static final int BIND_REQUEST
BIND_RESPONSE
public static final int BIND_RESPONSE
UNBIND_REQUEST
public static final int UNBIND_REQUEST
SEARCH_REQUEST
public static final int SEARCH_REQUEST
SEARCH_RESPONSE
public static final int SEARCH_RESPONSE
SEARCH_RESULT
public static final int SEARCH_RESULT
MODIFY_REQUEST
public static final int MODIFY_REQUEST
MODIFY_RESPONSE
public static final int MODIFY_RESPONSE
ADD_REQUEST
public static final int ADD_REQUEST
ADD_RESPONSE
public static final int ADD_RESPONSE
DEL_REQUEST
public static final int DEL_REQUEST
DEL_RESPONSE
public static final int DEL_RESPONSE
MODIFY_RDN_REQUEST
public static final int MODIFY_RDN_REQUEST
MODIFY_RDN_RESPONSE
public static final int MODIFY_RDN_RESPONSE
COMPARE_REQUEST
public static final int COMPARE_REQUEST
COMPARE_RESPONSE
public static final int COMPARE_RESPONSE
ABANDON_REQUEST
public static final int ABANDON_REQUEST
SEARCH_RESULT_REFERENCE
public static final int SEARCH_RESULT_REFERENCE
EXTENDED_REQUEST
public static final int EXTENDED_REQUEST
EXTENDED_RESPONSE
public static final int EXTENDED_RESPONSE
getID
public int getID()
- 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 java.lang.String toString()
- Returns string representation of an LDAP message.
- Overrides:
- toString in class java.lang.Object
- Returns:
- LDAP message.