Class WadlComponent

  • All Implemented Interfaces:
    Uniform

    @Deprecated
    public class WadlComponent
    extends Component
    Deprecated.
    Will be removed in next major release.
    Component that can configure itself given a WADL document. First, it creates the server connectors and the virtual hosts if needed, trying to reuse existing ones if available. Then it creates a WadlApplication using this WadlApplication(Representation) constructor.

    Concurrency note: instances of this class or its subclasses can be invoked by several threads at the same time and therefore must be thread-safe. You should be especially careful when storing state in member variables.
    • Constructor Detail

      • WadlComponent

        public WadlComponent()
        Deprecated.
        Default constructor.
      • WadlComponent

        public WadlComponent​(Reference wadlRef)
        Deprecated.
        Constructor loading a WADL description document at a given URI.

        The necessary client connectors are automatically created.
        Parameters:
        wadlRef - The URI reference to the WADL description document.
      • WadlComponent

        public WadlComponent​(Representation wadl)
        Deprecated.
        Constructor based on a given WADL description document.
        Parameters:
        wadl - The WADL description document.
      • WadlComponent

        public WadlComponent​(java.lang.String wadlUri)
        Deprecated.
        Constructor loading a WADL description document at a given URI.

        The necessary client connectors are automatically created.
        Parameters:
        wadlUri - The URI to the WADL description document.
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Deprecated.
        Main method capable of configuring and starting a whole Restlet Component based on a list of local WADL documents URIs, for example "file:///C:/YahooSearch.wadl".

        The necessary client connectors are automatically created.
        Parameters:
        args - List of local WADL document URIs.
        Throws:
        java.lang.Exception
      • attach

        public WadlApplication attach​(Reference wadlRef)
        Deprecated.
        Attaches an application created from a WADL description document available at a given URI reference.
        Parameters:
        wadlRef - The URI reference to the WADL description document.
        Returns:
        The created WADL application.
      • attach

        public WadlApplication attach​(Representation wadl)
        Deprecated.
        Attaches an application created from a WADL description document to the component.
        Parameters:
        wadl - The WADL description document.
        Returns:
        The created WADL application.
      • attach

        public WadlApplication attach​(java.lang.String wadlUri)
        Deprecated.
        Attaches an application created from a WADL description document available at a given URI.
        Parameters:
        wadlUri - The URI to the WADL description document.
        Returns:
        The created WADL application.