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

com.gistlabs.mechanize.DefaultResource Maven / Gradle / Ivy

There is a newer version: 2.0.0-RC1
Show newest version
/**
 * Copyright (C) 2012 Gist Labs, LLC. (http://gistlabs.com)
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package com.gistlabs.mechanize;

import java.util.Collection;

import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpRequestBase;

import com.gistlabs.mechanize.util.Collections;
import com.gistlabs.mechanize.util.apache.ContentType;

public class DefaultResource extends Resource {
	public static Collection CONTENT_MATCHERS = 
		Collections.collection(
				ContentType.WILDCARD.getMimeType(), 
				ContentType.APPLICATION_OCTET_STREAM.getMimeType(), 
				ContentType.DEFAULT_BINARY.getMimeType(), 
				ContentType.DEFAULT_TEXT.getMimeType());
	
	public DefaultResource(MechanizeAgent agent, HttpRequestBase request, HttpResponse response) {
		super(agent, request, response);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy