All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.archive.resource.http.HTTPHeadersResource Maven / Gradle / Ivy

There is a newer version: 1.1.9
Show newest version
package org.archive.resource.http;

import org.archive.format.arc.ARCConstants;
import org.archive.format.http.HttpHeader;
import org.archive.format.http.HttpHeaders;
import org.archive.resource.AbstractEmptyResource;
import org.archive.resource.MetaData;
import org.archive.resource.ResourceContainer;


public class HTTPHeadersResource extends AbstractEmptyResource
implements ARCConstants {

	public HTTPHeadersResource(MetaData metaData, ResourceContainer container,
			HttpHeaders headers) {
		super(metaData, container);
		for(HttpHeader h : headers) {
			metaData.putString(h.getName(),h.getValue());
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy