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

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

public class ApplicationDescription
extends Object

This class is designed to combine the Application instance with any other external metadata that might be required to describe the application.

Author:
Gerard Davison

Nested Class Summary
static class ApplicationDescription.ExternalGrammar
          A simple holder class that stores a type and binary content to be used to return extra metadata with
 
Method Summary
 Application getApplication()
           
 ApplicationDescription.ExternalGrammar getExternalGrammar(String path)
           
 Set<String> getExternalMetadataKeys()
           
 QName resolve(Class type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getApplication

public Application getApplication()
Returns:
The instance of the application object

resolve

public QName resolve(Class type)
Parameters:
type - java class to be resolved.
Returns:
the QName for the given Class in the grammar.

getExternalGrammar

public ApplicationDescription.ExternalGrammar getExternalGrammar(String path)
Parameters:
path - path to external metadata.
Returns:
the external metadata for a given URL, generally provided as a sub resource or the root application.wadl.

getExternalMetadataKeys

public Set<String> getExternalMetadataKeys()
Returns:
A set of all the external metadata keys


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.