/** * Returns a task service to run concurrent tasks. The service is enabled by * default. * * @return A task service. */ public org.restlet.service.TaskService getTaskService() { return getServices().get(org.restlet.service.TaskService.class); }
/** * Sets the global log service. * * @param logService * The global log service. */ public void setLogService(LogService logService) { getServices().set(logService); }
/** * Sets the status service. * * @param statusService * The status service. * @deprecated Use {@link Application#setStatusService(StatusService)} * instead. */ @Deprecated public void setStatusService(StatusService statusService) { getServices().set(statusService); }
/** * Stops the associated services. * * @throws Exception */ protected synchronized void stopServices() throws Exception { getServices().stop(); }
/** * Returns the status service, enabled by default. * * @return The status service. * @deprecated Use {@link Application#getStatusService()} instead. */ @Deprecated public StatusService getStatusService() { return getServices().get(StatusService.class); }
/** * Sets the task service. * * @param taskService * The task service. */ public void setTaskService(org.restlet.service.TaskService taskService) { getServices().set(taskService); }
/** * Starts the associated services. * * @throws Exception */ protected synchronized void startServices() throws Exception { getServices().start(); }
/** * Returns the global log service. On the first call, if no log service was * defined via the {@link #setLogService(LogService)} method, then a default * logger service is created. This service will be enabled by default and * has a logger name composed the "org.restlet." prefix followed by the * simple component class name (without packages), followed by the * ".LogService" suffix. * * @return The global log service. */ public LogService getLogService() { return getServices().get(LogService.class); }
@Override public void setContext(Context context) { super.setContext(context); getServices().setContext(context); }
Filter filter = null; for (Service service : getHelped().getServices()) { if (service.isEnabled()) {