com.gistlabs.mechanize.DefaultResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mechanize Show documentation
Show all versions of mechanize Show documentation
mechanize for java: stateful HTTP/HTML client
/**
* 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