Class AbstractRequestVisitor<R,P,E extends Exception>
java.lang.Object
org.forgerock.opendj.ldap.messages.AbstractRequestVisitor<R,P,E>
- 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 Implemented Interfaces:
RequestVisitor<R,
P, E>
- Direct Known Subclasses:
ChangeRecordVisitor
public abstract class AbstractRequestVisitor<R,P,E extends Exception>
extends Object
implements RequestVisitor<R,P,E>
Abstract class that implements the
RequestVisitor
interface.
All the implemented methods forward calls to the overridable method
visitAnyRequest(Object, Request)
which only returns null
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected R
visitAnyRequest
(P p, Request request) Catch-all method visiting any request for which the visit method has not been overridden.visitRequest
(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.
-
Constructor Details
-
AbstractRequestVisitor
public AbstractRequestVisitor()
-
-
Method Details
-
visitRequest
Description copied from interface:RequestVisitor
Visits anAbandon
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheAbandon
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anAdd
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheAdd
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anBind
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheBind
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anCompare
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheCompare
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anDelete
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheDelete
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anExtended
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheExtended
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anInvalid
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheInvalid
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anModifyDN
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheModifyDN
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anModify
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheModify
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anSearch
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheSearch
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anUnbind
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheUnbind
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitRequest
Description copied from interface:RequestVisitor
Visits anUnknown
request.- Specified by:
visitRequest
in interfaceRequestVisitor<R,
P, E extends Exception> - Parameters:
p
- A visitor specified parameter.request
- TheUnknown
request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-
visitAnyRequest
Catch-all method visiting any request for which the visit method has not been overridden.Default behavior is to return
null
.- Parameters:
p
- A visitor specified parameter.request
- A request.- Returns:
- Returns a visitor specified result.
- Throws:
E
- If the visitor failed.
-