LDAPJDK 4.1

netscape.ldap.controls
Class LDAPVirtualListResponse

java.lang.Object
  |
  +--netscape.ldap.LDAPControl
        |
        +--netscape.ldap.controls.LDAPVirtualListResponse

public class LDAPVirtualListResponse
extends LDAPControl

Represents control data for returning paged results from a search.

See Also:
Serialized Form

Field Summary
static java.lang.String VIRTUALLISTRESPONSE
           
 
Fields inherited from class netscape.ldap.LDAPControl
m_critical, m_value, MANAGEDSAIT, PWEXPIRED, PWEXPIRING
 
Constructor Summary
LDAPVirtualListResponse(byte[] value)
          Constructs a new LDAPVirtualListResponse object.
LDAPVirtualListResponse(java.lang.String oid, boolean critical, byte[] value)
          Contructs an LDAPVirtualListResponse object.
 
Method Summary
 int getContentCount()
          Gets the size of the virtual result set.
 java.lang.String getContext()
          Gets the context cookie, if any.
 int getFirstPosition()
          Gets the index of the first entry returned.
 int getResultCode()
          Gets the result code.
static LDAPVirtualListResponse parseResponse(LDAPControl[] controls)
          Deprecated. LDAPVirtualListResponse controls are now automatically instantiated.
 java.lang.String toString()
          Return a string representation of the control for debugging
 
Methods inherited from class netscape.ldap.LDAPControl
clone, createControl, flattenBER, getID, getValue, isCritical, lookupControlClass, newInstance, register
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VIRTUALLISTRESPONSE

public static final java.lang.String VIRTUALLISTRESPONSE
Constructor Detail

LDAPVirtualListResponse

public LDAPVirtualListResponse(java.lang.String oid,
                               boolean critical,
                               byte[] value)
                        throws LDAPException
Contructs an LDAPVirtualListResponse object.
Parameters:
oid - this parameter must be equal to LDAPVirtualListResponse.VIRTUALLISTRESPONSE or an LDAPExceptionis thrown
critical - true if this control is critical
value - the value associated with this control
Throws:
LDAPException - If oid is not LDAPVirtualListResponse.VIRTUALLISTRESPONSE.
See Also:
LDAPControl.register(java.lang.String, java.lang.Class)

LDAPVirtualListResponse

public LDAPVirtualListResponse(byte[] value)
Constructs a new LDAPVirtualListResponse object.
Parameters:
value - a BER encoded byte array
See Also:
LDAPControl
Method Detail

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

public java.lang.String getContext()
Gets the context cookie, if any.
Returns:
the result context cookie.

parseResponse

public static LDAPVirtualListResponse parseResponse(LDAPControl[] controls)
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

public java.lang.String toString()
Description copied from class: LDAPControl
Return a string representation of the control for debugging
Overrides:
toString in class LDAPControl
Tags copied from class: LDAPControl
Returns:
a string representation of the control.

LDAPJDK 4.1