Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.jersey.server.wadl
Interface WadlApplicationContext

    public interface WadlApplicationContext

A context to obtain WADL-based information.

Author:
  Paul.Sandoz

Method Summary
`com.sun.research.ws.wadl.Application` | `getApplication()` Get a new instance of a JAXB WADL `Application` corresponding to all the root resource classes.
`com.sun.research.ws.wadl.Application` | `getApplication(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.
`boolean` | `isWadlGenerationEnabled()` Get WADL generation status.
`void` | `setWadlGenerationEnabled(boolean wadlGenerationEnabled)` Enable/disable WADL generation.

Method Detail

### getWadlBuilder

    WadlBuilder getWadlBuilder()

  Get a WADL builder initiated with the configured `WadlGenerator` for the Web application.

  Returns:
    the WADL builder.

### getApplication

    com.sun.research.ws.wadl.Application getApplication()

  Get a new instance of a JAXB WADL `Application` corresponding to all the root resource classes.

  Returns:
    the application, the contents may be modified.

### getApplication

    com.sun.research.ws.wadl.Application getApplication(UriInfo ui)

  Get a new instance of a JAXB WADL `Application` corresponding to all the root resource classes, and configure the base URI.

  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

    javax.xml.bind.JAXBContext getJAXBContext()

  Get the default JAXB context associated with the `WadlGenerator` for the Web application.

  Returns:
    the default JAXB context.

### getJAXBContextPath

    java.lang.String getJAXBContextPath()

  Get the default JAXB context path to create a `JAXBContext`.

  Returns:
    the default JAXB context.

### setWadlGenerationEnabled

    void setWadlGenerationEnabled(boolean wadlGenerationEnabled)

  Enable/disable WADL generation.

  Parameters:
    `wadlGenerationEnabled` - if wadlGenerationEnabled is true and `ResourceConfig.FEATURE_DISABLE_WADL` is false, WADL generation is enabled. In all other cases is disabled.

### isWadlGenerationEnabled

    boolean isWadlGenerationEnabled()

  Get WADL generation status.

  Returns:
    true when WADL generation is enabled. Does not take `ResourceConfig.FEATURE_DISABLE_WADL`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011 Oracle Corporation. All Rights Reserved.