/**
 * Copyright (C) 2009-2016 Simonsoft Nordic AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package se.simonsoft.cms.item.export;

import java.nio.file.Path;

public interface CmsExportWriter {

    void prepare(CmsExportJob job);

    boolean isReady();

    void write();

    public interface LocalFileSystem extends CmsExportWriter {
    
    	Path getExportPath();
    }
    
    public interface ResultUrl extends CmsExportWriter {
        
    	/**
    	 * @return an href to the exported file, must be String to support a server-relative reference.
    	 */
    	String getExportUrl();
    }
}

/**
 * Copyright (C) 2009-2016 Simonsoft Nordic AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package se.simonsoft.cms.item.export;

import java.net.URL;
import java.nio.file.Path;

public interface CmsExportWriter {

    void prepare(CmsExportJob job);

    boolean isReady();

    void write();

    public interface LocalFileSystem extends CmsExportWriter {
    
    	Path getExportPath();
    }
    
    public interface ResultUrl extends CmsExportWriter {
        
    	URL getExportUrl();
    }
}

--- 
+++ 
@@ -15,7 +15,6 @@
  */
 package se.simonsoft.cms.item.export;
 
-import java.net.URL;
 import java.nio.file.Path;
 
 public interface CmsExportWriter {
@@ -33,6 +32,9 @@
     
     public interface ResultUrl extends CmsExportWriter {
         
-    	URL getExportUrl();
+    	/**
+    	 * @return an href to the exported file, must be String to support a server-relative reference.
+    	 */
+    	String getExportUrl();
     }
 }
Revert to returning the exportUrl as String since a relative href is not a valid Java URL.
