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.model.exception;
21
22
23 import java.util.Hashtable;
24
25 import javax.naming.Context;
26 import javax.naming.NamingException;
27
28 import org.apache.directory.api.ldap.model.message.ResultCodeEnum;
29 import org.apache.directory.api.ldap.model.name.Dn;
30 import org.apache.directory.api.util.exception.NotImplementedException;
31
32
33
34
35
36
37
38
39 public class AbstractLdapReferralException extends LdapOperationException
40 {
41
42 static final long serialVersionUID = 1L;
43
44
45 private Dn remainingDn;
46
47
48 private Object resolvedObject;
49
50
51
52
53
54
55
56
57 public AbstractLdapReferralException( String explanation )
58 {
59 super( explanation );
60 }
61
62
63
64
65
66
67
68 public ResultCodeEnum getResultCode()
69 {
70 return ResultCodeEnum.REFERRAL;
71 }
72
73
74 public Context getReferralContext() throws NamingException
75 {
76 throw new NotImplementedException();
77 }
78
79
80 public Context getReferralContext( Hashtable<?, ?> arg ) throws NamingException
81 {
82 throw new NotImplementedException();
83 }
84
85
86 public void retryReferral()
87 {
88 throw new NotImplementedException();
89 }
90
91
92
93
94
95 public Dn getRemainingDn()
96 {
97 return remainingDn;
98 }
99
100
101
102
103
104 public void setRemainingDn( Dn remainingDn )
105 {
106 this.remainingDn = remainingDn;
107 }
108
109
110
111
112
113 public Object getResolvedObject()
114 {
115 return resolvedObject;
116 }
117
118
119
120
121
122 public void setResolvedObject( Object resolvedObject )
123 {
124 this.resolvedObject = resolvedObject;
125 }
126 }