| java.lang.Object org.apache.harmony.jndi.provider.ldap.LdapMessage
All known Subclasses: org.apache.harmony.jndi.provider.ldap.mock.MockLdapMessage,
LdapMessage | public class LdapMessage implements ASN1Encodable,ASN1Decodable(Code) | | Ldap Message. Refer to
http://www.rfc-editor.org/rfc/rfc2251.txt for
detailed information
|
LdapMessage | public LdapMessage(int opIndex, ASN1Encodable op, Control[] controls)(Code) | | Construct a request message. op may not be
null . controls is null or a
array of zero length means there is no control for this message.
Parameters: opIndex - request index to indicate which operation is encapsulated Parameters: op - encodable operation Parameters: controls - message controls |
LdapMessage | public LdapMessage(ASN1Decodable op)(Code) | | Construct a response message. op indicate which operation
to be used, and the message would be initialized after calling
decode(byte[]) or decode(InputStream)
method.
Parameters: op - response index to indicate which operation to be encapsulated |
decode | public void decode(InputStream in) throws IOException(Code) | | Decode values from InputStream using ASN.1 BER, and the
decoded values will initialize this LdapMessage instance.
Parameters: in - throws: IOException - error occurs when decoding |
encode | public byte[] encode()(Code) | | Encode this message using ASN.1 Basic Encoding Rules (BER)
the encoded values of this LdapMessage instance |
getControls | public Control[] getControls()(Code) | | Return controls of the message, if there is no control, null
will be returned.
controls of the message |
getMessageId | public int getMessageId()(Code) | | Get message id of this message
id of this message |
getNextMessageId | public static synchronized int getNextMessageId()(Code) | | Get next unique message id
the next unique message id |
getOperationIndex | public int getOperationIndex()(Code) | | Get index of the operation, determine which operation is encapsulated in
this message. If this LdapMessage instance is not initial,
-1 will be returned.
index of the operation encapsulated in the message |
|
|