/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright (C) 2018 National Library of Australia and the jwarc contributors
 */

package org.netpreserve.jwarc;

public class WarcResource extends WarcCaptureRecord {
    WarcResource(MessageVersion version, MessageHeaders headers, MessageBody body) {
        super(version, headers, body);
    }

    public static class Builder extends AbstractBuilder<WarcResource, Builder> {
        protected Builder() {
            super("resource");
        }

        @Override
        public WarcResource build() {
            return build(WarcResource::new);
        }
    }
}

@@ -151,16 +151,38 @@
 jwarc;%0A%0A
+import java.net.URI;%0A%0A
 public c
@@ -439,16 +439,162 @@
 lder%3E %7B%0A
+        public Builder(URI targetURI) %7B%0A            super(%22resource%22);%0A            setHeader(%22WARC-Target-URI%22, targetURI.toString());%0A        %7D%0A%0A
         

Add resource builder constructor