public class SubentriesDecorator extends ControlDecorator<Subentries> implements Subentries
value, valueLength
OID
Constructor and Description |
---|
SubentriesDecorator(LdapApiService codec)
Default constructor
|
SubentriesDecorator(LdapApiService codec,
Subentries control)
Creates a Subentries decorating implementation for use with the codec,
while decorating the supplied Subentries control.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the SubEntryControl length 0x01 0x01 [0x00|0xFF]
|
Asn1Object |
decode(byte[] controlBytes)
Decodes raw ASN.1 encoded bytes into an Asn1Object for the control.
|
ByteBuffer |
encode(ByteBuffer buffer)
Encodes the Subentries control.
|
byte[] |
getValue()
Get the control value
|
boolean |
isVisible()
Check if the subEntry is visible
|
void |
setVisibility(boolean visibility)
Set the visibility flag
|
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOid, isCritical, setCritical
public SubentriesDecorator(LdapApiService codec)
public SubentriesDecorator(LdapApiService codec, Subentries control)
control
- The Subentries Control to wrap with this decorator.public int computeLength()
computeLength
in interface Asn1Object
computeLength
in interface Decorator<Subentries>
computeLength
in class ControlDecorator<Subentries>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<Subentries>
encode
in class AbstractAsn1Object
buffer
- The encoded sinkEncoderException
- If anything goes wrong.public byte[] getValue()
getValue
in interface CodecControl<Subentries>
getValue
in class ControlDecorator<Subentries>
public boolean isVisible()
Subentries
isVisible
in interface Subentries
public void setVisibility(boolean visibility)
Subentries
setVisibility
in interface Subentries
visibility
- The visibility flag : true or falsepublic Asn1Object decode(byte[] controlBytes) throws DecoderException
decode
in interface CodecControl<Subentries>
controlBytes
- the encoded control bytesDecoderException
- if anything goes wrongCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.