/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. package au.org.emii.portal.util;
  6. import au.org.emii.portal.config.xmlbeans.AbstractService;
  7. /**
  8. *
  9. * @author geoff
  10. */
  11. public interface UriResolver {
  12. /**
  13. * Clear all map entries
  14. */
  15. public void clear();
  16. /**
  17. * Add a new mapping
  18. * @param id id from config file
  19. * @param uri target URI
  20. */
  21. public void put(String id, String uri);
  22. /**
  23. * Remove a specific mapping
  24. * @param id config file id
  25. */
  26. public void remove(String id);
  27. /**
  28. * Lookup the URI that belongs to an id
  29. * @param id id from config file
  30. * @return URI corresponding or null if there is no match
  31. */
  32. public String resolve(String id);
  33. public String resolve(AbstractService service);
  34. }