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

edu.internet2.middleware.grouper.changeLog.consumer.o365.RetrofitWrapper Maven / Gradle / Ivy

package edu.internet2.middleware.grouper.changeLog.consumer.o365;

import okhttp3.Call;
import okhttp3.HttpUrl;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.CallAdapter;
import retrofit2.Converter;
import retrofit2.Retrofit;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.List;

public class RetrofitWrapper {
    private final Retrofit retrofit;

    public RetrofitWrapper(Retrofit retrofit) {
        this.retrofit = retrofit;
    }

    public  T create(Class service) {
        return retrofit.create(service);
    }

    public Call.Factory callFactory() {
        return retrofit.callFactory();
    }

    public HttpUrl baseUrl() {
        return retrofit.baseUrl();
    }

    public List callAdapterFactories() {
        return retrofit.callAdapterFactories();
    }

    public List converterFactories() {
        return retrofit.converterFactories();
    }

    public  Converter requestBodyConverter(Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations) {
        return retrofit.requestBodyConverter(type, parameterAnnotations, methodAnnotations);
    }

    public  Converter nextRequestBodyConverter(Converter.Factory skipPast, Type type, Annotation[] parameterAnnotations, Annotation[] methodAnnotations) {
        return retrofit.nextRequestBodyConverter(skipPast, type, parameterAnnotations, methodAnnotations);
    }

    public  Converter responseBodyConverter(Type type, Annotation[] annotations) {
        return retrofit.responseBodyConverter(type, annotations);
    }

    public  Converter nextResponseBodyConverter(Converter.Factory skipPast, Type type, Annotation[] annotations) {
        return retrofit.nextResponseBodyConverter(skipPast, type, annotations);
    }

    public  Converter stringConverter(Type type, Annotation[] annotations) {
        return retrofit.stringConverter(type, annotations);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy