Package netscape.ldap.controls
Class LDAPVirtualListResponse
java.lang.Object
netscape.ldap.LDAPControl
netscape.ldap.controls.LDAPVirtualListResponse
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
LdapVirtualListResponseControl
Represents control data for returning paged results from a search.
- Version:
- 1.0
VirtualListViewResponse ::= SEQUENCE { targetPosition INTEGER (0 .. maxInt), contentCount INTEGER (0 .. maxInt), virtualListViewResult ENUMERATED { success (0), operatonsError (1), timeLimitExceeded (3), adminLimitExceeded (11), insufficientAccessRights (50), busy (51), unwillingToPerform (53), sortControlMissing (60), offsetRangeError (61), other (80) }, contextID OCTET STRING OPTIONAL } - See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Stringprivate intprivate intstatic final StringFields inherited from class netscape.ldap.LDAPControl
m_critical, m_value, MANAGEDSAIT, PWEXPIRED, PWEXPIRING -
Constructor Summary
ConstructorsConstructorDescriptionBlank constructor for internal use inLDAPVirtualListResponse.LDAPVirtualListResponse(byte[] value) Constructs a newLDAPVirtualListResponseobject.LDAPVirtualListResponse(String oid, boolean critical, byte[] value) Contructs anLDAPVirtualListResponseobject. -
Method Summary
Modifier and TypeMethodDescriptionintGets the size of the virtual result set.Gets the context cookie, if any.intGets the index of the first entry returned.intGets the result code.private voidReturns a control useful for subsequent paged results searches.static LDAPVirtualListResponseparseResponse(LDAPControl[] controls) Deprecated.LDAPVirtualListResponse controls are now automatically instantiated.toString()Return a string representation of the control for debuggingMethods inherited from class netscape.ldap.LDAPControl
clone, createControl, flattenBER, getID, getValue, isCritical, lookupControlClass, newInstance, register
-
Field Details
-
VIRTUALLISTRESPONSE
- See Also:
-
m_firstPosition
private int m_firstPosition -
m_contentCount
private int m_contentCount -
m_resultCode
private int m_resultCode -
m_context
-
-
Constructor Details
-
LDAPVirtualListResponse
LDAPVirtualListResponse()Blank constructor for internal use inLDAPVirtualListResponse.- See Also:
-
LDAPVirtualListResponse
Contructs anLDAPVirtualListResponseobject.- Parameters:
oid- this parameter must be equal toLDAPVirtualListResponse.VIRTUALLISTRESPONSEor anLDAPExceptionis throwncritical-trueif this control is criticalvalue- the value associated with this control- Throws:
LDAPException- If oid is notLDAPVirtualListResponse.VIRTUALLISTRESPONSE.- See Also:
-
LDAPVirtualListResponse
public LDAPVirtualListResponse(byte[] value) Constructs a newLDAPVirtualListResponseobject.- Parameters:
value- a BER encoded byte array- See Also:
-
-
Method Details
-
getContentCount
public int getContentCount()Gets the size of the virtual result set.- 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.- Returns:
- the index of the first entry returned.
-
getResultCode
public int getResultCode()Gets the result code.- Returns:
- the result code.
-
getContext
Gets the context cookie, if any.- Returns:
- the result context cookie.
-
parseResponse
private void parseResponse()Returns a control useful for subsequent paged results searches. "this" should be a control returned on a previous paged results search, so it contains information on the virtual result set size. -
parseResponse
Deprecated.LDAPVirtualListResponse controls are now automatically instantiated.Returns a control returned on a VLV search.- Parameters:
controls- an array of controls that may include a VLV results control- Returns:
- the control, if any; otherwise null.
-
toString
Description copied from class:LDAPControlReturn a string representation of the control for debugging- Overrides:
toStringin classLDAPControl- Returns:
- a string representation of the control.
-