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 ...).-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateResourceModel(List<Resource> rootResources, List<Resource> allResources) Creates new instance from root allResources. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(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 modelbased on this this resource model.
-
Field Details
-
rootResources
-
resources
-
runtimeRootResourceModelValue
-
-
Constructor Details
-
ResourceModel
Creates new instance from root allResources.- Parameters:
allResources- Root resource of the 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:ResourceModelComponentA component should call the visitor back with an appropriate visitor interface method to give it a chance to process.- Specified by:
acceptin interfaceResourceModelComponent- Parameters:
visitor- resource model visitor.
-
getComponents
Description copied from interface:ResourceModelComponentShould return all existing resource model sub-components.- Specified by:
getComponentsin interfaceResourceModelComponent- Returns:
- list of all sub-components
-
getRuntimeResourceModel
Returnruntime resource modelbased on this this resource model.- Returns:
- Runtime resource model created from this resource model.
-