001/** 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 * 006 */ 007package org.fcrepo.migration; 008 009/** 010 * An interface defining a method to replace one URL (represented as a String) with another. 011 * In the context of migrating objects from fedora 3 to fedora 4, there may be a need to 012 * make programmatic updates to the URLs founds in External or Redirect datastreams. This 013 * interface is for that purpose. 014 * 015 * @author Mike Durbin 016 */ 017public interface ExternalContentURLMapper { 018 019 /** 020 * @param url to be mapped 021 * 022 * @return the String containing a URL that should be used instead of the given String 023 * for migrated external or redirect datastreams. 024 */ 025 public String mapURL(String url); 026}