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 theRequestVisitor
interface.All the implemented methods forward calls to the overridable method
visitAnyRequest(Object, Request)
which only returnsnull
.
-
-
Constructor Summary
Constructors Constructor Description AbstractRequestVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected R
visitAnyRequest(P p, Request request)
Catch-all method visiting any request for which the visit method has not been overridden.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
public R visitRequest(P p, AbandonRequest request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, AddRequest request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, BindRequest request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, CompareRequest request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, DeleteRequest request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, ExtendedRequest<?> request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, InvalidRequest request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, ModifyDnRequest request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, ModifyRequest request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, SearchRequest request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, UnbindRequest request) throws E extends Exception
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.E extends Exception
-
visitRequest
public R visitRequest(P p, UnknownRequest request) throws E extends Exception
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.E extends Exception
-
-