Skip to main content
summaryrefslogtreecommitdiffstats
blob: 42bb98ac65ef4656cff6ed2b3988119eeac664bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*******************************************************************************
 * Copyright (c) 2010 Tasktop Technologies and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Tasktop Technologies - initial API and implementation
 *******************************************************************************/

package org.eclipse.mylyn.commons.net.http;

import java.io.IOException;
import java.io.InputStream;

import org.apache.commons.httpclient.HttpMethod;
import org.eclipse.core.runtime.IProgressMonitor;

/**
 * @author Steffen Pingel
 * @since 3.7
 */
public interface CommonHttpMethod3 extends HttpMethod {

	public static final String CONTENT_ENCODING = "Content-Encoding"; //$NON-NLS-1$

	public static final String ACCEPT_ENCODING = "Accept-encoding"; //$NON-NLS-1$

	public static final String CONTENT_ENCODING_GZIP = "gzip"; //$NON-NLS-1$

	public abstract String getResponseCharSet();

	public abstract InputStream getResponseBodyAsStream(IProgressMonitor monitor) throws IOException;

	public abstract void releaseConnection(IProgressMonitor monitor);

}

Back to the top