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 ofRequest
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
visitRequest(P p, AbandonRequest request)
Visits anAbandon
request.R
visitRequest(P p, AddRequest request)
Visits anAdd
request.R
visitRequest(P p, BindRequest request)
Visits anBind
request.R
visitRequest(P p, CompareRequest request)
Visits anCompare
request.R
visitRequest(P p, DeleteRequest request)
Visits anDelete
request.R
visitRequest(P p, ExtendedRequest<?> request)
Visits anExtended
request.R
visitRequest(P p, InvalidRequest request)
Visits anInvalid
request.R
visitRequest(P p, ModifyDnRequest request)
Visits anModifyDN
request.R
visitRequest(P p, ModifyRequest request)
Visits anModify
request.R
visitRequest(P p, SearchRequest request)
Visits anSearch
request.R
visitRequest(P p, UnbindRequest request)
Visits anUnbind
request.R
visitRequest(P p, UnknownRequest request)
Visits anUnknown
request.
-
-
-
Method Detail
-
visitRequest
R visitRequest(P p, AbandonRequest request) throws E extends Exception
Visits anAbandon
request.
-
visitRequest
R visitRequest(P p, AddRequest request) throws E extends Exception
Visits anAdd
request.
-
visitRequest
R visitRequest(P p, BindRequest request) throws E extends Exception
Visits anBind
request.
-
visitRequest
R visitRequest(P p, CompareRequest request) throws E extends Exception
Visits anCompare
request.
-
visitRequest
R visitRequest(P p, DeleteRequest request) throws E extends Exception
Visits anDelete
request.
-
visitRequest
R visitRequest(P p, ExtendedRequest<?> request) throws E extends Exception
Visits anExtended
request.
-
visitRequest
R visitRequest(P p, InvalidRequest request) throws E extends Exception
Visits anInvalid
request.
-
visitRequest
R visitRequest(P p, ModifyDnRequest request) throws E extends Exception
Visits anModifyDN
request.
-
visitRequest
R visitRequest(P p, ModifyRequest request) throws E extends Exception
Visits anModify
request.
-
visitRequest
R visitRequest(P p, SearchRequest request) throws E extends Exception
Visits anSearch
request.
-
visitRequest
R visitRequest(P p, UnbindRequest request) throws E extends Exception
Visits anUnbind
request.
-
-