Class VirtualListViewRequestImpl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.controls.AbstractControl
-
- org.apache.directory.api.ldap.extras.controls.vlv.VirtualListViewRequestImpl
-
- All Implemented Interfaces:
VirtualListViewRequest
,Control
public class VirtualListViewRequestImpl extends AbstractControl implements VirtualListViewRequest
Virtual List View control as specified in draft-ietf-ldapext-ldapv3-vlv-09. VirtualListViewRequest ::= SEQUENCE { beforeCount INTEGER (0..maxInt), afterCount INTEGER (0..maxInt), target CHOICE { byOffset [0] SEQUENCE { offset INTEGER (1 .. maxInt), contentCount INTEGER (0 .. maxInt) }, greaterThanOrEqual [1] AssertionValue }, contextID OCTET STRING OPTIONAL } Simplistic implementation that only supports byOffset choice.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from interface org.apache.directory.api.ldap.extras.controls.vlv.VirtualListViewRequest
OID
-
-
Constructor Summary
Constructors Constructor Description VirtualListViewRequestImpl()
Creates a new instance of VirtualListViewRequestImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
getAfterCount()
byte[]
getAssertionValue()
int
getBeforeCount()
int
getContentCount()
byte[]
getContextId()
int
getOffset()
boolean
hasAssertionValue()
int
hashCode()
boolean
hasOffset()
void
setAfterCount(int afterCount)
void
setAssertionValue(byte[] assertionValue)
void
setBeforeCount(int beforeCount)
void
setContentCount(int contentCount)
void
setContextId(byte[] contextId)
void
setOffset(int offset)
String
toString()
Return a String representing this VirtualListViewRequestImpl.-
Methods inherited from class org.apache.directory.api.ldap.model.message.controls.AbstractControl
getOid, isCritical, setCritical
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Control
getOid, isCritical, setCritical
-
-
-
-
Constructor Detail
-
VirtualListViewRequestImpl
public VirtualListViewRequestImpl()
Creates a new instance of VirtualListViewRequestImpl.
-
-
Method Detail
-
getBeforeCount
public int getBeforeCount()
- Specified by:
getBeforeCount
in interfaceVirtualListViewRequest
- Returns:
- The number of entries before the target entry that are going to be sent
-
setBeforeCount
public void setBeforeCount(int beforeCount)
- Specified by:
setBeforeCount
in interfaceVirtualListViewRequest
- Parameters:
beforeCount
- Set the number of entries to be returned before the target entry
-
getAfterCount
public int getAfterCount()
- Specified by:
getAfterCount
in interfaceVirtualListViewRequest
- Returns:
- The number of entries after the target entry that are going to be sent
-
setAfterCount
public void setAfterCount(int afterCount)
- Specified by:
setAfterCount
in interfaceVirtualListViewRequest
- Parameters:
afterCount
- Set the number of entries to be returned after the target entry
-
getOffset
public int getOffset()
- Specified by:
getOffset
in interfaceVirtualListViewRequest
- Returns:
- The position of the target entry
-
setOffset
public void setOffset(int offset)
- Specified by:
setOffset
in interfaceVirtualListViewRequest
- Parameters:
offset
- the position of the target entry
-
getContentCount
public int getContentCount()
- Specified by:
getContentCount
in interfaceVirtualListViewRequest
- Returns:
- The number of expected entries
-
setContentCount
public void setContentCount(int contentCount)
- Specified by:
setContentCount
in interfaceVirtualListViewRequest
- Parameters:
contentCount
- The number of entries
-
getAssertionValue
public byte[] getAssertionValue()
- Specified by:
getAssertionValue
in interfaceVirtualListViewRequest
- Returns:
- The AssertionValue
-
setAssertionValue
public void setAssertionValue(byte[] assertionValue)
- Specified by:
setAssertionValue
in interfaceVirtualListViewRequest
- Parameters:
assertionValue
- Set the AssertionValue
-
getContextId
public byte[] getContextId()
- Specified by:
getContextId
in interfaceVirtualListViewRequest
- Returns:
- The ID used for this request
-
setContextId
public void setContextId(byte[] contextId)
- Specified by:
setContextId
in interfaceVirtualListViewRequest
- Parameters:
contextId
- Set the context ID
-
hasOffset
public boolean hasOffset()
- Specified by:
hasOffset
in interfaceVirtualListViewRequest
- Returns:
true
if the VLV target is an offset, false otherwise
-
hasAssertionValue
public boolean hasAssertionValue()
- Specified by:
hasAssertionValue
in interfaceVirtualListViewRequest
- Returns:
true
if the VLV target is an assertionValue, false otherwise
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractControl
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractControl
- See Also:
Object.equals(Object)
-
toString
public String toString()
Return a String representing this VirtualListViewRequestImpl.- Overrides:
toString
in classAbstractControl
-
-