1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.api.ldap.extras.controls.ad_impl;
21
22
23 import java.nio.ByteBuffer;
24
25 import org.apache.directory.api.asn1.Asn1Object;
26 import org.apache.directory.api.asn1.DecoderException;
27 import org.apache.directory.api.asn1.EncoderException;
28 import org.apache.directory.api.ldap.codec.api.CodecControl;
29 import org.apache.directory.api.ldap.codec.api.ControlDecorator;
30 import org.apache.directory.api.ldap.codec.api.LdapApiService;
31 import org.apache.directory.api.ldap.extras.controls.ad.AdShowDeleted;
32
33
34
35
36
37
38
39 public class AdShowDeletedDecorator extends ControlDecorator<AdShowDeleted> implements CodecControl<AdShowDeleted>, AdShowDeleted
40 {
41
42
43
44
45
46
47 public AdShowDeletedDecorator( LdapApiService codec, AdShowDeleted control )
48 {
49 super( codec, control );
50 }
51
52
53
54
55
56 @Override
57 public int computeLength()
58 {
59 return 0;
60 }
61
62
63
64
65
66 @Override
67 public Asn1Object decode( byte[] controlBytes ) throws DecoderException
68 {
69 return this;
70 }
71
72
73
74
75
76 @Override
77 public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException
78 {
79 return buffer;
80 }
81 }