Class AbstractResourceModelVisitor
java.lang.Object
org.glassfish.jersey.server.model.AbstractResourceModelVisitor
- All Implemented Interfaces:
ResourceModelVisitor
- Direct Known Subclasses:
RuntimeResourceModelValidator
Abstract implementation of
resource model visitor
containing empty implementations
of interface methods. This class can be derived by validator implementing only methods needed for specific
validations.- Author:
- Miroslav Fuksa
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visitChildResource
(Resource resource) Start visiting a single child resource model.void
visitInvocable
(Invocable invocable) Visit a single resource method invocable model.void
visitMethodHandler
(MethodHandler methodHandler) Visit a single resource method handler model.void
visitResource
(Resource resource) Start visiting a single resource model.void
visitResourceHandlerConstructor
(HandlerConstructor constructor) Process a resource method handler constructor.void
visitResourceMethod
(ResourceMethod method) Visit a single resource method model.void
visitResourceModel
(ResourceModel resourceModel) Process a resource model.void
visitRuntimeResource
(RuntimeResource runtimeResource) Process a runtime resource model.
-
Constructor Details
-
AbstractResourceModelVisitor
public AbstractResourceModelVisitor()
-
-
Method Details
-
visitResource
Description copied from interface:ResourceModelVisitor
Start visiting a single resource model.- Specified by:
visitResource
in interfaceResourceModelVisitor
- Parameters:
resource
- resource model.
-
visitChildResource
Description copied from interface:ResourceModelVisitor
Start visiting a single child resource model.- Specified by:
visitChildResource
in interfaceResourceModelVisitor
- Parameters:
resource
- child resource model.
-
visitResourceMethod
Description copied from interface:ResourceModelVisitor
Visit a single resource method model.- Specified by:
visitResourceMethod
in interfaceResourceModelVisitor
- Parameters:
method
- resource method model.
-
visitInvocable
Description copied from interface:ResourceModelVisitor
Visit a single resource method invocable model.- Specified by:
visitInvocable
in interfaceResourceModelVisitor
- Parameters:
invocable
- resource method invocable model.
-
visitMethodHandler
Description copied from interface:ResourceModelVisitor
Visit a single resource method handler model.- Specified by:
visitMethodHandler
in interfaceResourceModelVisitor
- Parameters:
methodHandler
- resource method handler model.
-
visitResourceHandlerConstructor
Description copied from interface:ResourceModelVisitor
Process a resource method handler constructor. Typically a constructor of a JAX-RS annotated resource class.- Specified by:
visitResourceHandlerConstructor
in interfaceResourceModelVisitor
- Parameters:
constructor
- resource method handler constructor.
-
visitResourceModel
Description copied from interface:ResourceModelVisitor
Process a resource model.- Specified by:
visitResourceModel
in interfaceResourceModelVisitor
- Parameters:
resourceModel
- resource model.
-
visitRuntimeResource
Description copied from interface:ResourceModelVisitor
Process a runtime resource model.- Specified by:
visitRuntimeResource
in interfaceResourceModelVisitor
- Parameters:
runtimeResource
- runtime resource model.
-