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

com.jdroid.java.http.okhttp.get.OkGetHttpService Maven / Gradle / Ivy

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

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 OkGetHttpService extends OkHttpService {

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

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

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