blob: 97b2a5e62e5709e6752cb414b2b07364bd1da812 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015 Frank Becker 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:
* Frank Becker - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.bugzilla.rest.core;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpRequestBase;
import org.eclipse.mylyn.commons.repositories.http.core.CommonHttpClient;
public abstract class BugzillaRestPostRequest<T> extends BugzillaRestRequest<T> {
public BugzillaRestPostRequest(CommonHttpClient client, String urlSuffix) {
super(client, urlSuffix, false);
}
@Override
protected HttpRequestBase createHttpRequestBase(String url) {
HttpPost request = new HttpPost(url);
request.setHeader(CONTENT_TYPE, APPLICATION_JSON);
return request;
}
}