public class VirtualListViewResponseDecorator extends ControlDecorator<VirtualListViewResponse> implements VirtualListViewResponse
OID
Constructor and Description |
---|
VirtualListViewResponseDecorator(LdapApiService codec)
Create a new SyncRequestValueDecorator instance
|
VirtualListViewResponseDecorator(LdapApiService codec,
VirtualListViewResponse vlvRequest)
Create a new SyncRequestValueDecorator instance
|
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 |
getContentCount() |
byte[] |
getContextId() |
int |
getTargetPosition() |
byte[] |
getValue()
Get the control value
|
VirtualListViewResultCode |
getVirtualListViewResult() |
void |
setContentCount(int contentCount)
Sets the number of returned entries
|
void |
setContextId(byte[] contextId)
Sets the context ID
|
void |
setTargetPosition(int targetPosition)
Sets the position in the list of entries
|
void |
setVirtualListViewResult(VirtualListViewResultCode virtualListViewResult)
Store the VLV result
|
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString
getOid, isCritical, setCritical
public VirtualListViewResponseDecorator(LdapApiService codec)
codec
- The LDAP API service to usepublic VirtualListViewResponseDecorator(LdapApiService codec, VirtualListViewResponse vlvRequest)
codec
- The LDAP API service to usevlvRequest
- The decorated VLV requestpublic int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface Decorator<VirtualListViewResponse>
computeLength
in class ControlDecorator<VirtualListViewResponse>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<VirtualListViewResponse>
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedpublic byte[] getValue()
getValue
in interface CodecControl<VirtualListViewResponse>
getValue
in class ControlDecorator<VirtualListViewResponse>
public Asn1Object decode(byte[] controlBytes) throws DecoderException
decode
in interface CodecControl<VirtualListViewResponse>
controlBytes
- the encoded control bytesDecoderException
- if anything goes wrongpublic int getTargetPosition()
getTargetPosition
in interface VirtualListViewResponse
public void setTargetPosition(int targetPosition)
setTargetPosition
in interface VirtualListViewResponse
targetPosition
- the position in the list of entriespublic int getContentCount()
getContentCount
in interface VirtualListViewResponse
public void setContentCount(int contentCount)
setContentCount
in interface VirtualListViewResponse
contentCount
- The number of returned entriespublic VirtualListViewResultCode getVirtualListViewResult()
getVirtualListViewResult
in interface VirtualListViewResponse
public void setVirtualListViewResult(VirtualListViewResultCode virtualListViewResult)
setVirtualListViewResult
in interface VirtualListViewResponse
virtualListViewResult
- The resultpublic byte[] getContextId()
getContextId
in interface VirtualListViewResponse
public void setContextId(byte[] contextId)
setContextId
in interface VirtualListViewResponse
contextId
- The context IDCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.