|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetscape.ldap.LDAPMessage
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 }
Field Summary | |
static int |
ABANDON_REQUEST
|
static int |
ADD_REQUEST
|
static int |
ADD_RESPONSE
|
static int |
BIND_REQUEST
|
static int |
BIND_RESPONSE
|
static int |
COMPARE_REQUEST
|
static int |
COMPARE_RESPONSE
|
static int |
DEL_REQUEST
|
static int |
DEL_RESPONSE
|
static int |
EXTENDED_REQUEST
|
static int |
EXTENDED_RESPONSE
|
static int |
MODIFY_RDN_REQUEST
|
static int |
MODIFY_RDN_RESPONSE
|
static int |
MODIFY_REQUEST
|
static int |
MODIFY_RESPONSE
|
static int |
SEARCH_REQUEST
|
static int |
SEARCH_RESPONSE
|
static int |
SEARCH_RESULT
|
static int |
SEARCH_RESULT_REFERENCE
|
(package private) static long |
serialVersionUID
|
static int |
UNBIND_REQUEST
|
Constructor Summary | |
(package private) |
LDAPMessage(int msgid,
JDAPProtocolOp op)
Constructs a ldap message. |
(package private) |
LDAPMessage(int msgid,
JDAPProtocolOp op,
LDAPControl[] controls)
|
Method Summary | |
LDAPControl[] |
getControls()
Retrieves list of controls. |
int |
getMessageID()
Returns the message identifer. |
(package private) JDAPProtocolOp |
getProtocolOp()
Retrieves the protocol operation. |
int |
getType()
Returns the LDAP operation type of the message |
(package private) static LDAPMessage |
parseMessage(BERElement element)
Creates a ldap message from a BERElement. |
java.lang.String |
toString()
Returns string representation of an LDAP message. |
(package private) java.lang.StringBuffer |
toTraceString()
Returns string representation of a ldap message with the time stamp. |
(package private) void |
write(java.io.OutputStream s)
Writes the ber encoding to stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static final long serialVersionUID
public static final int BIND_REQUEST
public static final int BIND_RESPONSE
public static final int UNBIND_REQUEST
public static final int SEARCH_REQUEST
public static final int SEARCH_RESPONSE
public static final int SEARCH_RESULT
public static final int MODIFY_REQUEST
public static final int MODIFY_RESPONSE
public static final int ADD_REQUEST
public static final int ADD_RESPONSE
public static final int DEL_REQUEST
public static final int DEL_RESPONSE
public static final int MODIFY_RDN_REQUEST
public static final int MODIFY_RDN_RESPONSE
public static final int COMPARE_REQUEST
public static final int COMPARE_RESPONSE
public static final int ABANDON_REQUEST
public static final int SEARCH_RESULT_REFERENCE
public static final int EXTENDED_REQUEST
public static final int EXTENDED_RESPONSE
Constructor Detail |
LDAPMessage(int msgid, JDAPProtocolOp op)
msgid
- message identifierop
- operation protocolLDAPMessage(int msgid, JDAPProtocolOp op, LDAPControl[] controls)
Method Detail |
static LDAPMessage parseMessage(BERElement element) throws java.io.IOException
element
- ber element constructed from incoming byte stream
java.io.IOException
public int getMessageID()
public int getType()
JDAPProtocolOp getProtocolOp()
public LDAPControl[] getControls()
void write(java.io.OutputStream s) throws java.io.IOException
s
- output stream
java.io.IOException
public java.lang.String toString()
java.lang.StringBuffer toTraceString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |