R
- The type of ASN.1 reader used for decoding elements.public final class LdapReader<R extends Asn1Reader> extends Object
Modifier and Type | Method and Description |
---|---|
R |
getAsn1Reader()
Returns the ASN.1 reader from which LDAP messages will be read.
|
boolean |
hasMessageAvailable()
Returns
true if the next LDAP message can be read without
blocking. |
LdapMessage |
readLdapRequestMessage()
Reads the next LDAP request message from the underlying ASN.1 reader.
|
LdapMessage |
readLdapResponseMessage()
Reads the next LDAP response message from the underlying ASN.1 reader.
|
public R getAsn1Reader()
public boolean hasMessageAvailable() throws IOException
true
if the next LDAP message can be read without
blocking.true
if the next LDAP message can be read without
blocking or false
otherwise.DecodeException
- If the available data was not a valid LDAP message.IOException
- If an unexpected IO error occurred.public LdapMessage readLdapRequestMessage() throws IOException
LdapMessage
wrapping a Request
.DecodeException
- If the available data was not a valid LDAP message.IOException
- If an unexpected IO error occurred.public LdapMessage readLdapResponseMessage() throws IOException
LdapMessage
wrapping a Response
.DecodeException
- If the available data was not a valid LDAP message.IOException
- If an unexpected IO error occurred.Copyright © 2010-2018, ForgeRock All Rights Reserved.