@Override public boolean isStarted() { return wrappedRestlet.isStarted(); }
@Override public boolean isStarted() { return wrappedRestlet.isStarted(); }
/** * Attempts to {@link #stop()} the Restlet if it is still started. */ @Override protected void finalize() throws Throwable { if (isStarted()) { stop(); } super.finalize(); }
/** * Stop all applications attached to a virtual host * * @param host * @throws Exception */ private void stopHostApplications(VirtualHost host) throws Exception { for (Route route : host.getRoutes()) { if (route.getNext().isStarted()) { route.getNext().stop(); } } }
if (!isStarted()) {