@Priority(value=10000) public class WadlModelProcessor extends Object implements ModelProcessor
model processorwhich enhance resource model by WADL related resources (like "/application.wadl"). The provider should be registered using
WadlFeatureif auto-discovery is disabled.
|Modifier and Type||Class and Description|
OPTIONS resource method handler that serves resource WADL.
|Constructor and Description|
Create new WADL model processor instance.
|Modifier and Type||Method and Description|
public ResourceModel processResourceModel(ResourceModel resourceModel, javax.ws.rs.core.Configuration configuration)
resourceModeland return the processed model. Returning input
resourceModelwill cause no effect on the final resource model.
public ResourceModel processSubResource(ResourceModel resourceModel, javax.ws.rs.core.Configuration configuration)
subResourceModelwhich was returned a sub resource locator. The
subResourceModelcontains only one
resourcerepresenting model that should be processed by further matching. The method must return also exactly one resource in the model. Returning input
subResourceModelinstance will cause no effect on the final sub resource model.
Sub resourcewhich is based on sub resource returned from sub resource locator.
configuration- Runtime configuration.
resourcewhich should be used for handling sub resource.
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.