/**
 * 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();
    }
}

@@ -653,29 +653,8 @@
 t;%0A%0A
-import java.net.URL;%0A
 impo
@@ -974,11 +974,133 @@
    %09
-URL
+/**%0A    %09 * @return an href to the exported file, must be String to support a server-relative reference.%0A    %09 */%0A    %09String
  get

Revert to returning the exportUrl as String since a relative href is not a valid Java URL.