|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.controls.ControlDecorator<Subentries>
org.apache.directory.shared.ldap.codec.controls.search.subentries.SubentriesDecorator
public class SubentriesDecorator
A Subentries Control implementation which wraps and decorates Subentries Controls to enable them to be encoded and decoded by the codec.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.codec.controls.ControlDecorator |
|---|
value, valueLength |
| Fields inherited from interface org.apache.directory.shared.ldap.model.message.controls.Subentries |
|---|
OID |
| Constructor Summary | |
|---|---|
SubentriesDecorator(LdapCodecService codec)
Default constructor |
|
SubentriesDecorator(LdapCodecService codec,
Subentries control)
Creates a Subentries decorating implementation for use with the codec, while decorating the supplied Subentries control. |
|
| Method Summary | |
|---|---|
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()
|
void |
setVisibility(boolean visibility)
|
| Methods inherited from class org.apache.directory.shared.ldap.codec.controls.ControlDecorator |
|---|
equals, getCodecService, getDecorated, getOid, hashCode, hasValue, isCritical, setCritical, setDecorated, setValue, toString |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Control |
|---|
getOid, isCritical, setCritical |
| Constructor Detail |
|---|
public SubentriesDecorator(LdapCodecService codec)
public SubentriesDecorator(LdapCodecService codec,
Subentries control)
control - The Subentries Control to wrap with this decorator.| Method Detail |
|---|
public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<Subentries>computeLength in class ControlDecorator<Subentries>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<Subentries>encode in class AbstractAsn1Objectbuffer - The encoded sink
EncoderException - If anything goes wrong.public byte[] getValue()
getValue in interface CodecControl<Subentries>getValue in class ControlDecorator<Subentries>public boolean isVisible()
isVisible in interface Subentriespublic void setVisibility(boolean visibility)
setVisibility in interface Subentries
public Asn1Object decode(byte[] controlBytes)
throws DecoderException
decode in interface CodecControl<Subentries>controlBytes - the encoded control bytes
DecoderException - if anything goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||