PageRenderTime 24ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/webportal/src/main/java/au/org/emii/portal/util/UriResolver.java

http://alageospatialportal.googlecode.com/
Java | 42 lines | 9 code | 8 blank | 25 comment | 0 complexity | b7e8830a6d9d281fc0d3de14a1c854fe MD5 | raw file
 1/*
 2 * To change this template, choose Tools | Templates
 3 * and open the template in the editor.
 4 */
 5
 6package au.org.emii.portal.util;
 7
 8import au.org.emii.portal.config.xmlbeans.AbstractService;
 9
10/**
11 *
12 * @author geoff
13 */
14public interface UriResolver {
15
16    /**
17     * Clear all map entries
18     */
19    public void clear();
20
21    /**
22     * Add a new mapping
23     * @param id id from config file
24     * @param uri target URI
25     */
26    public void put(String id, String uri);
27
28    /**
29     * Remove a specific mapping
30     * @param id config file id
31     */
32    public void remove(String id);
33
34    /**
35     * Lookup the URI that belongs to an id
36     * @param id id from config file
37     * @return URI corresponding or null if there is no match
38     */
39    public String resolve(String id);
40
41    public String resolve(AbstractService service);
42}