/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
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package au.org.emii.portal.util;
- import au.org.emii.portal.config.xmlbeans.AbstractService;
- /**
- *
- * @author geoff
- */
- public interface UriResolver {
- /**
- * Clear all map entries
- */
- public void clear();
- /**
- * Add a new mapping
- * @param id id from config file
- * @param uri target URI
- */
- public void put(String id, String uri);
- /**
- * Remove a specific mapping
- * @param id config file id
- */
- public void remove(String id);
- /**
- * Lookup the URI that belongs to an id
- * @param id id from config file
- * @return URI corresponding or null if there is no match
- */
- public String resolve(String id);
- public String resolve(AbstractService service);
- }