Package org.glassfish.jersey.server.wadl
Class WadlFeature
- java.lang.Object
-
- org.glassfish.jersey.server.wadl.WadlFeature
-
- All Implemented Interfaces:
Feature
public class WadlFeature extends Object implements Feature
Feature enabling WADL processing. The feature registers providers and binders needed to enable wadl in the jersey application. One of the providers iswadl model processorwhich enhances current resources by additional wadl resources like/application.wadland wadl options method.- Author:
- Miroslav Fuksa
-
-
Constructor Summary
Constructors Constructor Description WadlFeature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanconfigure(FeatureContext context)A call-back method called when the feature is to be enabled in a given runtime configuration scope.
-
-
-
Method Detail
-
configure
public boolean configure(FeatureContext context)
Description copied from interface:FeatureA call-back method called when the feature is to be enabled in a given runtime configuration scope. The responsibility of the feature is to properly update the supplied runtime configuration context and returntrueif the feature was successfully enabled orfalseotherwise.Note that under some circumstances the feature may decide not to enable itself, which is indicated by returning
false. In such case the configuration context does not add the feature to the collection of enabled features and a subsequent call toConfiguration.isEnabled(Feature)orConfiguration.isEnabled(Class)method would returnfalse.
-
-