org.glassfish.jersey.server.wadl.internal
Class WadlBuilder

java.lang.Object
  extended by org.glassfish.jersey.server.wadl.internal.WadlBuilder

public class WadlBuilder
extends Object

This class implements the algorithm how the wadl is built for one or more Resource classes. Wadl artifacts are created by a WadlGenerator. Created on: Jun 18, 2008

Author:
Marc Hadley, Martin Grotzke (martin.grotzke at freiheit.com), Miroslav Fuksa (miroslav.fuksa at oracle.com)

Constructor Summary
WadlBuilder()
           
WadlBuilder(WadlGenerator wadlGenerator)
           
 
Method Summary
 Application generate(ApplicationDescription description, Resource resource)
          Generate WADL for a resource.
 Application generate(ApplicationDescription description, Resource resource, String path)
          Generate WADL for a virtual subresource resulting from sub resource methods.
 ApplicationDescription generate(List<Resource> resources)
          Generate WADL for a set of resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WadlBuilder

public WadlBuilder()

WadlBuilder

public WadlBuilder(WadlGenerator wadlGenerator)
Method Detail

generate

public ApplicationDescription generate(List<Resource> resources)
Generate WADL for a set of resources.

Parameters:
resources - the set of resources
Returns:
the JAXB WADL application bean

generate

public Application generate(ApplicationDescription description,
                            Resource resource)
Generate WADL for a resource.

Parameters:
resource - the resource
description - the overall application description so we can
Returns:
the JAXB WADL application bean

generate

public Application generate(ApplicationDescription description,
                            Resource resource,
                            String path)
Generate WADL for a virtual subresource resulting from sub resource methods.

Parameters:
description - the overall application description so we can
resource - the parent resource
path - the value of the methods path annotations
Returns:
the JAXB WADL application bean


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.