| java.lang.Object org.restlet.Uniform org.restlet.Restlet org.restlet.Component
Component | public class Component extends Restlet (Code) | | Restlet managing a set of Connectors, VirtualHosts and Applications.
Applications are expected to be directly attached to VirtualHosts. Components
also expose several services: access logging and status setting.
From an architectural point of view, here is the REST definition: "A
component is an abstract unit of software instructions and internal state
that provides a transformation of data via its interface." Roy T. Fielding
See Also: Source
* dissertation author: Jerome Louvel (contact@noelios.com) |
Constructor Summary | |
public | Component() Constructor. |
Component | public Component()(Code) | | Constructor.
|
getClients | public ClientList getClients()(Code) | | Returns the modifiable list of client connectors.
The modifiable list of client connectors. |
getDefaultHost | public VirtualHost getDefaultHost()(Code) | | Returns the default virtual host.
The default virtual host. |
getHosts | public List<VirtualHost> getHosts()(Code) | | Returns the modifiable list of host routers.
The modifiable list of host routers. |
getLogService | public LogService getLogService()(Code) | | Returns the global log service. On the first call, if no log service was
defined via the
Component.setLogService(LogService) method, then a default
logger service is created. This default service is enabled by default and
has a logger name composed of the canonical name of the current
component's class or subclass, appended with the instance hash code
between parenthesis (eg. "com.mycompany.MyComponent(1439)").
The global log service. |
getServers | public ServerList getServers()(Code) | | Returns the modifiable list of server connectors.
The modifiable list of server connectors. |
getStatusService | public StatusService getStatusService()(Code) | | Returns the status service. This service is enabled by default.
The status service. |
handle | public void handle(Request request, Response response)(Code) | | Handles a call.
Parameters: request - The request to handle. Parameters: response - The response to update. |
setLogService | public void setLogService(LogService logService)(Code) | | Sets the global log service.
Parameters: logService - The global log service. |
setStatusService | public void setStatusService(StatusService statusService)(Code) | | Sets the status service.
Parameters: statusService - The status service. |
start | public void start() throws Exception(Code) | | Starts the component and all its connectors.
|
stop | public void stop() throws Exception(Code) | | Stops the component and all its connectors.
|
|
|