abstractpublic class Application extends Restlet(Code)
Restlet that can be attached to one or more VirtualHosts. Applications are
guaranteed to receive calls with their base reference set relatively to the
VirtualHost that served them. This class is both a descriptor able to create
the root Restlet and the actual Restlet that can be attached to one or more
VirtualHost instances.
Applications also have many useful Services associated. They are available as
properties that can be eventually overriden:
"connectorService" to manage client and server connectors.
"converterService" to convert message entities into higher-level
objects.
"decoderService" to automatically decode or decompress request entities.
"metadataService" to provide access to metadata and their associated
extension names.
"statusService" to provide common representations for exception status.
"tunnelService" to tunnel method names or client preferences via query
parameters.
If you need to retrieve the reference to an Application from one of its
contained Restlets, you can use the
Application.KEY constant to lookup the
Context.attributes property.
author: Jerome Louvel (contact@noelios.com)
Constructor. Note that usage of this constructor is not recommended as
your application won't have access to the parent component context. For
example, no dispatching will be possible as it requires access to the
component's client connectors.
Creates a root Restlet that will receive all incoming calls. In general,
instances of Router, Filter or Handler classes will be used as initial
application Restlet. The default implementation returns null by default.
This method is intended to be overriden by subclasses.
The root Restlet.