comparison artifact-database/src/main/java/org/dive4elements/artifactdatabase/rest/RestApp.java @ 582:0d492fc47869 3.2.x

Avoid deprecated API
author Tom Gottfried <tom@intevation.de>
date Tue, 17 Jan 2023 14:21:14 +0100
parents 415df0fc4fa1
children
comparison
equal deleted inserted replaced
581:d41cdb5a386b 582:0d492fc47869
17 import org.restlet.Restlet; 17 import org.restlet.Restlet;
18 18
19 import org.restlet.routing.Router; 19 import org.restlet.routing.Router;
20 20
21 /** 21 /**
22 * This is the core REST application that binds the serveral resources 22 * This is the core REST application that binds the several resources
23 * used to manage the artifact database to the HTTP server provided 23 * used to manage the artifact database to the HTTP server provided
24 * by the Restlet framework. 24 * by the Restlet framework.
25 * 25 *
26 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> 26 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a>
27 */ 27 */
59 * build the resource tree to form the exposed server URLs. 59 * build the resource tree to form the exposed server URLs.
60 * 60 *
61 * @return The root of the URL tree exposed by the HTTP server. 61 * @return The root of the URL tree exposed by the HTTP server.
62 */ 62 */
63 @Override 63 @Override
64 public Restlet createRoot() { 64 public Restlet createInboundRoot() {
65 65
66 Context context = getContext(); 66 Context context = getContext();
67 67
68 ConcurrentMap map = context.getAttributes(); 68 ConcurrentMap map = context.getAttributes();
69 map.put("database", database); 69 map.put("database", database);

http://dive4elements.wald.intevation.org