public class VirtualListViewRequestDecorator extends ControlDecorator<VirtualListViewRequest> implements VirtualListViewRequest
OID
Constructor and Description |
---|
VirtualListViewRequestDecorator(LdapApiService codec)
Creates a new instance of VirtualListViewRequestDecorator.
|
VirtualListViewRequestDecorator(LdapApiService codec,
VirtualListViewRequest vlvRequest)
Creates a new instance of VirtualListViewRequestDecorator.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the object length, which is the sum of all inner length.
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the object to a PDU.
|
int |
getAfterCount() |
byte[] |
getAssertionValue() |
int |
getBeforeCount() |
int |
getContentCount() |
byte[] |
getContextId() |
int |
getOffset() |
byte[] |
getValue()
Get the control value
|
boolean |
hasAssertionValue() |
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) |
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString
getOid, isCritical, setCritical
public VirtualListViewRequestDecorator(LdapApiService codec)
codec
- The LDAP Service to usepublic VirtualListViewRequestDecorator(LdapApiService codec, VirtualListViewRequest vlvRequest)
codec
- The LDAP Service to usevlvRequest
- The VLV request to usepublic int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface Decorator<VirtualListViewRequest>
computeLength
in class ControlDecorator<VirtualListViewRequest>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<VirtualListViewRequest>
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedpublic byte[] getValue()
getValue
in interface CodecControl<VirtualListViewRequest>
getValue
in class ControlDecorator<VirtualListViewRequest>
public Asn1Object decode(byte[] controlBytes) throws DecoderException
decode
in interface CodecControl<VirtualListViewRequest>
controlBytes
- the encoded control bytesDecoderException
- if anything goes wrongpublic int getBeforeCount()
getBeforeCount
in interface VirtualListViewRequest
public void setBeforeCount(int beforeCount)
setBeforeCount
in interface VirtualListViewRequest
beforeCount
- Set the number of entries to be returned before the target entrypublic int getAfterCount()
getAfterCount
in interface VirtualListViewRequest
public void setAfterCount(int afterCount)
setAfterCount
in interface VirtualListViewRequest
afterCount
- Set the number of entries to be returned after the target entrypublic int getOffset()
getOffset
in interface VirtualListViewRequest
public void setOffset(int offset)
setOffset
in interface VirtualListViewRequest
offset
- the position of the target entrypublic int getContentCount()
getContentCount
in interface VirtualListViewRequest
public void setContentCount(int contentCount)
setContentCount
in interface VirtualListViewRequest
contentCount
- The number of entriespublic byte[] getContextId()
getContextId
in interface VirtualListViewRequest
public void setContextId(byte[] contextId)
setContextId
in interface VirtualListViewRequest
contextId
- Set the context IDpublic byte[] getAssertionValue()
getAssertionValue
in interface VirtualListViewRequest
public void setAssertionValue(byte[] assertionValue)
setAssertionValue
in interface VirtualListViewRequest
assertionValue
- Set the AssertionValuepublic boolean hasOffset()
hasOffset
in interface VirtualListViewRequest
true
if the VLV target is an offset, false otherwisepublic boolean hasAssertionValue()
hasAssertionValue
in interface VirtualListViewRequest
true
if the VLV target is an assertionValue, false otherwiseCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.