@Override public synchronized void stop() throws Exception { wrappedRestlet.stop(); }
@Override public synchronized void stop() throws Exception { wrappedRestlet.stop(); }
/** * Attempts to {@link #stop()} the Restlet if it is still started. */ @Override protected void finalize() throws Throwable { if (isStarted()) { stop(); } super.finalize(); }
@Override public synchronized void stop() throws Exception { super.stop(); for (Client client : clients.values()) { client.stop(); } } });
@Override public synchronized void stop() throws Exception { if (isStarted()) { httpManager.shutdown(); } super.stop(); }
/** * 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(); } } }
/** * Stops the component. First it stops the component's internal helper and * then stops all the connectors (servers then clients). Finally it calls * the stop method of the super class. * * @see #stopHelper() * @see #stopServers() * @see #stopClients() */ @Override public synchronized void stop() throws Exception { stopHelper(); stopServers(); stopClients(); stopServices(); super.stop(); }
/** * Stops the application, the inbound and outbound roots then all the * enabled associated services. Finally, it clears the internal cache of * annotations. */ @Override public synchronized void stop() throws Exception { if (isStarted()) { // Must be invoked as a first step super.stop(); if (getOutboundRoot() != null) { getOutboundRoot().stop(); } if (getInboundRoot() != null) { getInboundRoot().stop(); } getServices().stop(); if (getHelper() != null) { getHelper().stop(); } // Clear the annotations cache AnnotationUtils.getInstance().clearCache(); } }
/** * Releases the resource by stopping any connector automatically created and * associated to the "next" property (see {@link #getNext()} method. */ @Override protected void doRelease() throws ResourceException { if ((getNext() != null) && this.nextCreated) { if (getNext() instanceof Restlet) { try { ((Restlet) getNext()).stop(); } catch (Exception e) { throw new ResourceException(e); } } setNext(null); } }
/** * Stops the filter and the attached routes. */ @Override public synchronized void stop() throws Exception { if (isStarted()) { // Must be invoked as a first step super.stop(); if (getDefaultRoute() != null) { getDefaultRoute().stop(); } for (Route route : getRoutes()) { route.stop(); } } }
/** * Stops the component. First it stops the component's internal helper, the * realms, the services, the routers and then stops all the connectors * (servers then clients) Finally it calls the stop method of the super * class. * * @see #stopHelper() * @see #stopRealms() * @see #stopServices() * @see #stopRouters() * @see #stopServers() * @see #stopClients() */ @Override public synchronized void stop() throws Exception { stopHelper(); stopRealms(); stopServices(); stopRouters(); stopServers(); stopClients(); super.stop(); }
super.stop();