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

com.jdroid.java.http.okhttp.delete.OkDeleteHttpService Maven / Gradle / Ivy

The newest version!
package com.jdroid.java.http.okhttp.delete;

import com.jdroid.java.http.HttpMethod;
import com.jdroid.java.http.HttpServiceProcessor;
import com.jdroid.java.http.Server;
import com.jdroid.java.http.okhttp.OkHttpService;

import java.util.List;

import okhttp3.Request;

public class OkDeleteHttpService extends OkHttpService {

	public OkDeleteHttpService(Server server, List urlSegments, List httpServiceProcessors) {
		super(server, urlSegments, httpServiceProcessors);
	}

	@Override
	protected void onConfigureRequestBuilder(Request.Builder builder) {
		builder.delete();
	}

	@Override
	public HttpMethod getHttpMethod() {
		return HttpMethod.DELETE;
	}
}