public class WadlBuilder
extends java.lang.Object
AbstractResource classes. WADL artifacts are created by a
WadlGenerator.| Constructor and Description |
|---|
WadlBuilder()
Create default WADL builder.
|
WadlBuilder(WadlGenerator wadlGenerator)
Create WADL builder that utilizes given WADL generator.
|
| Modifier and Type | Method and Description |
|---|---|
com.sun.research.ws.wadl.Application |
generate(javax.ws.rs.ext.Providers providers,
FeaturesAndProperties fap,
javax.ws.rs.core.UriInfo info,
ApplicationDescription description,
AbstractResource resource)
Generate WADL for a resource.
|
com.sun.research.ws.wadl.Application |
generate(javax.ws.rs.ext.Providers providers,
FeaturesAndProperties fap,
javax.ws.rs.core.UriInfo info,
ApplicationDescription description,
AbstractResource resource,
java.lang.String path)
Generate WADL for a virtual subresource resulting from sub resource
methods.
|
ApplicationDescription |
generate(javax.ws.rs.ext.Providers providers,
FeaturesAndProperties fap,
javax.ws.rs.core.UriInfo info,
java.util.Set<AbstractResource> resources)
Generate WADL for a set of resources.
|
ApplicationDescription |
generate(javax.ws.rs.core.UriInfo info,
java.util.Set<AbstractResource> resources)
Generate WADL for a set of resources.
|
public WadlBuilder()
public WadlBuilder(WadlGenerator wadlGenerator)
wadlGenerator - initialized WADL generator.public ApplicationDescription generate(javax.ws.rs.core.UriInfo info, java.util.Set<AbstractResource> resources)
resources - the set of resourcesinfo - a UriInfo to provide context for the requestpublic ApplicationDescription generate(javax.ws.rs.ext.Providers providers, FeaturesAndProperties fap, javax.ws.rs.core.UriInfo info, java.util.Set<AbstractResource> resources)
resources - the set of resourcesinfo - a UriInfo to provide context for the requestproviders - an instance of Providers required for some WADL generatorsfap - an instance of FeaturesAndProperties required from some WADL generatorspublic com.sun.research.ws.wadl.Application generate(javax.ws.rs.ext.Providers providers,
FeaturesAndProperties fap,
javax.ws.rs.core.UriInfo info,
ApplicationDescription description,
AbstractResource resource)
resource - the resourcedescription - the overall application description so we caninfo - a UriInfo to provide context for the requestproviders - an instance of Providers required for some WADL generatorsfap - an instance of FeaturesAndProperties required from some WADL generatorspublic com.sun.research.ws.wadl.Application generate(javax.ws.rs.ext.Providers providers,
FeaturesAndProperties fap,
javax.ws.rs.core.UriInfo info,
ApplicationDescription description,
AbstractResource resource,
java.lang.String path)
description - the overall application description so we canresource - the parent resourcepath - the value of the methods path annotationsCopyright © 2016 Oracle Corporation. All Rights Reserved.