com.sun.jersey.api.wadl
Class WadlGeneratorTask

java.lang.Object
  extended by Task
      extended by com.sun.jersey.api.wadl.WadlGeneratorTask

public class WadlGeneratorTask
extends Task

Ant task for generating WADL for root resource classes. The task requires that the destfile attribute be set to the location of the WADL file to be generated, the baseUri attribute set to the base URI of the WADL resources, and the classpath be set. The task will scan all classes in the classpath obtain the root resource classes and then create a WADL document from those root resources.

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
WadlGeneratorTask()
           
 
Method Summary
 Path createClasspath()
           
 void execute()
           
 java.lang.String getbaseUri()
           
 Path getClasspath()
           
 java.io.File getDestfile()
           
 void setBaseUri(java.lang.String baseUri)
           
 void setClasspath(Path classpath)
           
 void setClasspathRef(Reference r)
           
 void setDestfile(java.io.File wadlFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WadlGeneratorTask

public WadlGeneratorTask()
Method Detail

getClasspath

public Path getClasspath()

setClasspath

public void setClasspath(Path classpath)

createClasspath

public Path createClasspath()

setClasspathRef

public void setClasspathRef(Reference r)

getDestfile

public java.io.File getDestfile()

setDestfile

public void setDestfile(java.io.File wadlFile)

getbaseUri

public java.lang.String getbaseUri()

setBaseUri

public void setBaseUri(java.lang.String baseUri)

execute

public void execute()
             throws BuildException
Throws:
BuildException


Copyright © 2008 Sun Microsystems, Inc. All Rights Reserved.