com.sun.jersey.server.impl.wadl
Class WadlFactory

java.lang.Object
  extended by com.sun.jersey.server.impl.wadl.WadlFactory

public final class WadlFactory
extends Object

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
WadlFactory(ResourceConfig resourceConfig)
           
 
Method Summary
 WadlApplicationContext createWadlApplicationContext(Set<AbstractResource> rootResources)
           
 ResourceMethod createWadlOptionsMethod(Map<String,List<ResourceMethod>> methods, AbstractResource resource, PathPattern p)
          Create the WADL resource method for OPTIONS.
 void init(InjectableProviderFactory ipf, Set<AbstractResource> rootResources)
           
 boolean isSupported()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WadlFactory

public WadlFactory(ResourceConfig resourceConfig)
Method Detail

isSupported

public boolean isSupported()

createWadlApplicationContext

public WadlApplicationContext createWadlApplicationContext(Set<AbstractResource> rootResources)

init

public void init(InjectableProviderFactory ipf,
                 Set<AbstractResource> rootResources)

createWadlOptionsMethod

public ResourceMethod createWadlOptionsMethod(Map<String,List<ResourceMethod>> methods,
                                              AbstractResource resource,
                                              PathPattern p)
Create the WADL resource method for OPTIONS.

This is created using reflection so that there is no runtime dependency on JAXB. If the JAXB jars are not in the class path then WADL generation will not be supported.

Parameters:
resource - the resource model
Returns:
the WADL resource OPTIONS method


Copyright © 2013 Oracle Corporation. All Rights Reserved.