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

java.lang.Object
  extended by com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl
All Implemented Interfaces:
WadlApplicationContext

public class WadlApplicationContextImpl
extends java.lang.Object
implements WadlApplicationContext

Author:
Paul.Sandoz@Sun.Com

Constructor Summary
WadlApplicationContextImpl(java.util.Set<AbstractResource> rootResources, WadlGenerator wadlGenerator)
           
 
Method Summary
 Application getApplication()
          Get a new instance of a JAXB WADL Application corresponding to all the root resource classes.
 Application getApplication(javax.ws.rs.core.UriInfo ui)
          Get a new instance of a JAXB WADL Application corresponding to all the root resource classes, and configure the base URI.
 javax.xml.bind.JAXBContext getJAXBContext()
          Get the default JAXB context associated with the WadlGenerator for the Web application.
 java.lang.String getJAXBContextPath()
          Get the default JAXB context path to create a JAXBContext.
 WadlBuilder getWadlBuilder()
          Get a WADL builder initiated with the configured WadlGenerator for the Web application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WadlApplicationContextImpl

public WadlApplicationContextImpl(java.util.Set<AbstractResource> rootResources,
                                  WadlGenerator wadlGenerator)
Method Detail

getApplication

public Application getApplication()
Description copied from interface: WadlApplicationContext
Get a new instance of a JAXB WADL Application corresponding to all the root resource classes.

Specified by:
getApplication in interface WadlApplicationContext
Returns:
the application, the contents may be modified.

getApplication

public Application getApplication(javax.ws.rs.core.UriInfo ui)
Description copied from interface: WadlApplicationContext
Get a new instance of a JAXB WADL Application corresponding to all the root resource classes, and configure the base URI.

Specified by:
getApplication in interface WadlApplicationContext
Parameters:
ui - the URI information from which the base URI is set on the WADL application.
Returns:
the application, the contents may be modified.

getJAXBContext

public javax.xml.bind.JAXBContext getJAXBContext()
Description copied from interface: WadlApplicationContext
Get the default JAXB context associated with the WadlGenerator for the Web application.

Specified by:
getJAXBContext in interface WadlApplicationContext
Returns:
the default JAXB context.

getJAXBContextPath

public java.lang.String getJAXBContextPath()
Description copied from interface: WadlApplicationContext
Get the default JAXB context path to create a JAXBContext.

Specified by:
getJAXBContextPath in interface WadlApplicationContext
Returns:
the default JAXB context.

getWadlBuilder

public WadlBuilder getWadlBuilder()
Description copied from interface: WadlApplicationContext
Get a WADL builder initiated with the configured WadlGenerator for the Web application.

Specified by:
getWadlBuilder in interface WadlApplicationContext
Returns:
the WADL builder.


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