Class LdapVirtualListResponseControl
java.lang.Object
netscape.ldap.LDAPControl
netscape.ldap.controls.LDAPVirtualListResponse
com.netscape.jndi.ldap.controls.LdapVirtualListResponseControl
- All Implemented Interfaces:
Serializable, Cloneable, Control
Represents control data for returning paged results from a search.
VirtualListViewResponse ::= SEQUENCE {
firstPosition INTEGER,
contentCount INTEGER,
virtualListViewResult ENUMERATED {
success (0),
unwillingToPerform (53),
insufficientAccessRights (50),
operationsError (1),
busy (51),
timeLimitExceeded (3),
adminLimitExceeded (11),
sortControlMissing (60),
indexRangeError (?),
}
}
- See Also:
-
Field Summary
Fields inherited from class LDAPVirtualListResponse
VIRTUALLISTRESPONSEFields inherited from class LDAPControl
m_critical, m_value, MANAGEDSAIT, PWEXPIRED, PWEXPIRINGFields inherited from interface Control
CRITICAL, NONCRITICAL -
Constructor Summary
ConstructorsConstructorDescriptionLdapVirtualListResponseControl(boolean critical, byte[] value) Constructs a newLDAPVirtualListResponseobject. -
Method Summary
Modifier and TypeMethodDescriptionintGets the size of the virtual result set.byte[]Retrieves the ASN.1 BER encoded value of the LDAP control.intGets the index of the first entry returned.intGets the result code.Methods inherited from class LDAPVirtualListResponse
getContext, parseResponse, toStringMethods inherited from class LDAPControl
clone, createControl, flattenBER, getID, getValue, isCritical, lookupControlClass, newInstance, registerMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Control
getID, isCritical
-
Constructor Details
-
LdapVirtualListResponseControl
-
-
Method Details
-
getContentCount
public int getContentCount()Gets the size of the virtual result set.- Overrides:
getContentCountin classLDAPVirtualListResponse- Returns:
- The size of the virtual result set, or -1 if not known.
-
getFirstPosition
public int getFirstPosition()Gets the index of the first entry returned.- Overrides:
getFirstPositionin classLDAPVirtualListResponse- Returns:
- The index of the first entry returned.
-
getResultCode
public int getResultCode()Gets the result code.- Overrides:
getResultCodein classLDAPVirtualListResponse- Returns:
- The result code.
-
getEncodedValue
public byte[] getEncodedValue()Retrieves the ASN.1 BER encoded value of the LDAP control. Null is returned if the value is absent.- Specified by:
getEncodedValuein interfaceControl- Returns:
- A possibly null byte array representing the ASN.1 BER encoded value of the LDAP control.
-