Class ResourceModel
java.lang.Object
org.glassfish.jersey.server.model.ResourceModel
- All Implemented Interfaces:
ResourceModelComponent
Resource model of the deployed application which contains set of root resources. As it implements
ResourceModelComponent
it can be validated by component model validator
which will perform
validation of the entire resource model including all sub components (resources
,
resource methods
...).- Author:
- Miroslav Fuksa
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ResourceModelVisitor visitor) A component should call the visitor back with an appropriate visitor interface method to give it a chance to process.List<? extends ResourceModelComponent>
Should return all existing resource model sub-components.Return all resources from this resource model.Return root resources from this resource model.Returnruntime resource model
based on this this resource model.
-
Method Details
-
getRootResources
Return root resources from this resource model.- Returns:
- List of root resources.
-
getResources
Return all resources from this resource model.- Returns:
- List of all resources (root and non root resources).
-
accept
Description copied from interface:ResourceModelComponent
A component should call the visitor back with an appropriate visitor interface method to give it a chance to process.- Specified by:
accept
in interfaceResourceModelComponent
- Parameters:
visitor
- resource model visitor.
-
getComponents
Description copied from interface:ResourceModelComponent
Should return all existing resource model sub-components.- Specified by:
getComponents
in interfaceResourceModelComponent
- Returns:
- list of all sub-components
-
getRuntimeResourceModel
Returnruntime resource model
based on this this resource model.- Returns:
- Runtime resource model created from this resource model.
-