Interface RequestVisitor<R,P,E extends Exception>
- Type Parameters:
R
- The return type of this visitor's methods. UseVoid
for visitors that do not need to return results.P
- The type of the additional parameter to this visitor's methods. UseVoid
for visitors that do not need an additional parameter.E
- The type of the exception thrown by the visitor method if it fails, orNeverThrowsException
if the visitor cannot fail.
- All Known Implementing Classes:
AbstractRequestVisitor
,ChangeRecordVisitor
public interface RequestVisitor<R,P,E extends Exception>
A visitor of
Request
s, in the style of the visitor design pattern.
Classes implementing this interface can query requests in a type-safe manner. When a visitor is passed to a request's accept method, the corresponding visit method most applicable to that request is invoked.
-
Method Summary
Modifier and TypeMethodDescriptionvisitRequest
(P p, AbandonRequest request) Visits anAbandon
request.visitRequest
(P p, AddRequest request) Visits anAdd
request.visitRequest
(P p, BindRequest request) Visits anBind
request.visitRequest
(P p, CompareRequest request) Visits anCompare
request.visitRequest
(P p, DeleteRequest request) Visits anDelete
request.visitRequest
(P p, ExtendedRequest<?> request) Visits anExtended
request.visitRequest
(P p, InvalidRequest request) Visits anInvalid
request.visitRequest
(P p, ModifyDnRequest request) Visits anModifyDN
request.visitRequest
(P p, ModifyRequest request) Visits anModify
request.visitRequest
(P p, SearchRequest request) Visits anSearch
request.visitRequest
(P p, UnbindRequest request) Visits anUnbind
request.visitRequest
(P p, UnknownRequest request) Visits anUnknown
request.
-
Method Details
-
visitRequest
Visits anAbandon
request.- Parameters:
p
- A visitor specified parameter.request
- TheAbandon
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anAdd
request.- Parameters:
p
- A visitor specified parameter.request
- TheAdd
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anBind
request.- Parameters:
p
- A visitor specified parameter.request
- TheBind
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anCompare
request.- Parameters:
p
- A visitor specified parameter.request
- TheCompare
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anDelete
request.- Parameters:
p
- A visitor specified parameter.request
- TheDelete
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anExtended
request.- Parameters:
p
- A visitor specified parameter.request
- TheExtended
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anInvalid
request.- Parameters:
p
- A visitor specified parameter.request
- TheInvalid
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anModifyDN
request.- Parameters:
p
- A visitor specified parameter.request
- TheModifyDN
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anModify
request.- Parameters:
p
- A visitor specified parameter.request
- TheModify
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anSearch
request.- Parameters:
p
- A visitor specified parameter.request
- TheSearch
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anUnbind
request.- Parameters:
p
- A visitor specified parameter.request
- TheUnbind
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Visits anUnknown
request.- Parameters:
p
- A visitor specified parameter.request
- TheUnknown
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-