Class ArmeriaRetrofit
java.lang.Object
com.linecorp.armeria.client.retrofit2.ArmeriaRetrofit
public final class ArmeriaRetrofit extends Object
Provides various ways to create a
Retrofit
which uses WebClient
for sending requests.-
Method Summary
Modifier and Type Method Description static ArmeriaRetrofitBuilder
builder(com.linecorp.armeria.client.WebClient baseWebClient)
Returns a newArmeriaRetrofitBuilder
that builds a client that sends requests using the specifiedWebClient
.static ArmeriaRetrofitBuilder
builder(com.linecorp.armeria.common.SessionProtocol protocol, com.linecorp.armeria.client.endpoint.EndpointGroup endpointGroup)
Returns a newArmeriaRetrofitBuilder
that builds a client that sends requests to the specifiedEndpointGroup
using the specifiedSessionProtocol
.static ArmeriaRetrofitBuilder
builder(String baseUrl)
Returns a newArmeriaRetrofitBuilder
created with the specifiedbaseUrl
.static ArmeriaRetrofitBuilder
builder(URI baseUrl)
Returns a newArmeriaRetrofitBuilder
created with the specifiedbaseUrl
.static Retrofit
of(com.linecorp.armeria.client.WebClient baseWebClient)
Returns a newRetrofit
which sends requests using the specifiedWebClient
.static Retrofit
of(com.linecorp.armeria.common.SessionProtocol protocol, com.linecorp.armeria.client.endpoint.EndpointGroup endpointGroup)
Returns a newRetrofit
which sends requests to the specifiedEndpoint
using the specifiedSessionProtocol
.static Retrofit
of(String baseUrl)
Returns a newRetrofit
with the specifiedbaseUrl
.static Retrofit
of(URI baseUrl)
Returns a newRetrofit
with the specifiedbaseUrl
.
-
Method Details
-
of
Returns a newRetrofit
with the specifiedbaseUrl
. -
of
Returns a newRetrofit
with the specifiedbaseUrl
. -
of
public static Retrofit of(com.linecorp.armeria.common.SessionProtocol protocol, com.linecorp.armeria.client.endpoint.EndpointGroup endpointGroup)Returns a newRetrofit
which sends requests to the specifiedEndpoint
using the specifiedSessionProtocol
. -
of
Returns a newRetrofit
which sends requests using the specifiedWebClient
. -
builder
Returns a newArmeriaRetrofitBuilder
created with the specifiedbaseUrl
. -
builder
Returns a newArmeriaRetrofitBuilder
created with the specifiedbaseUrl
. -
builder
public static ArmeriaRetrofitBuilder builder(com.linecorp.armeria.common.SessionProtocol protocol, com.linecorp.armeria.client.endpoint.EndpointGroup endpointGroup)Returns a newArmeriaRetrofitBuilder
that builds a client that sends requests to the specifiedEndpointGroup
using the specifiedSessionProtocol
. -
builder
Returns a newArmeriaRetrofitBuilder
that builds a client that sends requests using the specifiedWebClient
.
-