Package org.restlet.ext.wadl
Class WadlComponent
- java.lang.Object
-
- org.restlet.Restlet
-
- org.restlet.Component
-
- org.restlet.ext.wadl.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 aWadlApplicationusing thisWadlApplication(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 Summary
Constructors Constructor Description WadlComponent()Deprecated.Default constructor.WadlComponent(java.lang.String wadlUri)Deprecated.Constructor loading a WADL description document at a given URI.
The necessary client connectors are automatically created.WadlComponent(Reference wadlRef)Deprecated.Constructor loading a WADL description document at a given URI.
The necessary client connectors are automatically created.WadlComponent(Representation wadl)Deprecated.Constructor based on a given WADL description document.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WadlApplicationattach(java.lang.String wadlUri)Deprecated.Attaches an application created from a WADL description document available at a given URI.WadlApplicationattach(Reference wadlRef)Deprecated.Attaches an application created from a WADL description document available at a given URI reference.WadlApplicationattach(Representation wadl)Deprecated.Attaches an application created from a WADL description document to the component.static voidmain(java.lang.String[] args)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.-
Methods inherited from class org.restlet.Component
getClients, getDefaultHost, getHosts, getInternalRouter, getLogService, getRealm, getRealms, getServers, getServices, getStatusService, getTaskService, handle, setClients, setContext, setDefaultHost, setHosts, setInternalRouter, setLogService, setRealms, setServers, setStatusService, setTaskService, start, startClients, startHelper, startRealms, startRouters, startServers, startServices, stop, stopClients, stopHelper, stopRealms, stopRouters, stopServers, stopServices, updateHosts
-
Methods inherited from class org.restlet.Restlet
createFinder, finalize, getApplication, getAuthor, getContext, getDescription, getFinderClass, getLogger, getName, getOwner, handle, handle, handle, isStarted, isStopped, setAuthor, setDescription, setFinderClass, setName, setOwner
-
-
-
-
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.ExceptionDeprecated.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.
-
-