Class WadlModelProcessor
java.lang.Object
org.glassfish.jersey.server.wadl.processor.WadlModelProcessor
- All Implemented Interfaces:
ModelProcessor
WADL
model processor
which enhance resource model by WADL related resources (like "/application.wadl").
The provider should be registered using
WadlAutoDiscoverable
or by
WadlFeature
if auto-discovery is disabled.- Author:
- Miroslav Fuksa
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
OPTIONS resource method handler that serves resource WADL. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprocessResourceModel
(ResourceModel resourceModel, Configuration configuration) ProcessresourceModel
and return the processed model.processSubResource
(ResourceModel resourceModel, Configuration configuration) ProcesssubResourceModel
which was returned a sub resource locator.
-
Constructor Details
-
WadlModelProcessor
public WadlModelProcessor()Create new WADL model processor instance.
-
-
Method Details
-
processResourceModel
Description copied from interface:ModelProcessor
ProcessresourceModel
and return the processed model. Returning inputresourceModel
will cause no effect on the final resource model.- Specified by:
processResourceModel
in interfaceModelProcessor
- Parameters:
resourceModel
- Input resource model to be processed.configuration
- Runtime configuration.- Returns:
- Processed resource model containing root resources. Non root resources will be ignored.
-
processSubResource
Description copied from interface:ModelProcessor
ProcesssubResourceModel
which was returned a sub resource locator. ThesubResourceModel
contains only oneresource
representing model that should be processed by further matching. The method must return also exactly one resource in the model. Returning inputsubResourceModel
instance will cause no effect on the final sub resource model.- Specified by:
processSubResource
in interfaceModelProcessor
- Parameters:
resourceModel
-Sub resource
which is based on sub resource returned from sub resource locator.configuration
- Runtime configuration.- Returns:
- Processed resource model with one
resource
which should be used for handling sub resource.
-