- calculateDelay(TimeUnit) - Method in class retrofit2.mock.NetworkBehavior
-
Get the delay that should be used for delaying a response in accordance with configured
behavior.
- calculateIsError() - Method in class retrofit2.mock.NetworkBehavior
-
Randomly determine whether this call should result in an HTTP error in accordance with
configured behavior.
- calculateIsFailure() - Method in class retrofit2.mock.NetworkBehavior
-
Randomly determine whether this call should result in a network failure in accordance with
configured behavior.
- Call<T> - Interface in retrofit2
-
An invocation of a Retrofit method that sends a request to a webserver and returns a response.
- CallAdapter<R,T> - Interface in retrofit2
-
Adapts a
Call with response type
R into the type of
T.
- callAdapter(Type, Annotation[]) - Method in class retrofit2.Retrofit
-
- CallAdapter.Factory - Class in retrofit2
-
- callAdapterFactories() - Method in class retrofit2.Retrofit
-
- Callback<T> - Interface in retrofit2
-
Communicates responses from a server or offline requests.
- callbackExecutor(Executor) - Method in class retrofit2.Retrofit.Builder
-
The executor on which
Callback methods are invoked when returning
Call from
your service method.
- callbackExecutor() - Method in class retrofit2.Retrofit
-
- callFactory(Call.Factory) - Method in class retrofit2.Retrofit.Builder
-
Specify a custom call factory for creating
Call instances.
- callFactory() - Method in class retrofit2.Retrofit
-
The factory used to create OkHttp calls for sending a HTTP requests.
- Calls - Class in retrofit2.mock
-
Factory methods for creating
Call instances which immediately respond or fail.
- cancel() - Method in interface retrofit2.Call
-
Cancel this call.
- ChunkingConverter - Class in com.example.retrofit
-
- ChunkingConverter() - Constructor for class com.example.retrofit.ChunkingConverter
-
- client(OkHttpClient) - Method in class retrofit2.Retrofit.Builder
-
The HTTP client used for requests.
- clone() - Method in interface retrofit2.Call
-
Create a new, identical call to this one which can be enqueued or executed even if this call
has already been.
- code() - Method in exception retrofit2.HttpException
-
HTTP status code.
- code() - Method in class retrofit2.Response
-
HTTP status code.
- com.example.retrofit - package com.example.retrofit
-
- contributions - Variable in class com.example.retrofit.SimpleService.Contributor
-
- Contributor(String, int) - Constructor for class com.example.retrofit.SimpleService.Contributor
-
- contributors(String, String) - Method in interface com.example.retrofit.SimpleService.GitHub
-
- convert(F) - Method in interface retrofit2.Converter
-
- Converter<F,T> - Interface in retrofit2
-
Convert objects to and from their representation in HTTP.
- Converter.Factory - Class in retrofit2
-
Creates
Converter instances based on a type and target usage.
- converterFactories() - Method in class retrofit2.Retrofit
-
- Crawler - Class in com.example.retrofit
-
A simple web crawler that uses a Retrofit service to turn URLs into webpages.
- Crawler(Crawler.PageService) - Constructor for class com.example.retrofit.Crawler
-
- crawlPage(HttpUrl) - Method in class com.example.retrofit.Crawler
-
- create() - Static method in class retrofit.converter.guava.GuavaOptionalConverterFactory
-
- create() - Static method in class retrofit.converter.java8.Java8OptionalConverterFactory
-
- create() - Static method in class retrofit2.adapter.guava.GuavaCallAdapterFactory
-
- create() - Static method in class retrofit2.adapter.java8.Java8CallAdapterFactory
-
- create() - Static method in class retrofit2.adapter.rxjava.RxJavaCallAdapterFactory
-
Returns an instance which creates synchronous observables that do not operate on any scheduler
by default.
- create() - Static method in class retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
-
Returns an instance which creates synchronous observables that do not operate on any scheduler
by default.
- create() - Static method in class retrofit2.converter.gson.GsonConverterFactory
-
Create an instance using a default Gson instance for conversion.
- create(Gson) - Static method in class retrofit2.converter.gson.GsonConverterFactory
-
Create an instance using gson for conversion.
- create() - Static method in class retrofit2.converter.jackson.JacksonConverterFactory
-
Create an instance using a default ObjectMapper instance for conversion.
- create(ObjectMapper) - Static method in class retrofit2.converter.jackson.JacksonConverterFactory
-
Create an instance using mapper for conversion.
- create() - Static method in class retrofit2.converter.moshi.MoshiConverterFactory
-
Create an instance using a default Moshi instance for conversion.
- create(Moshi) - Static method in class retrofit2.converter.moshi.MoshiConverterFactory
-
Create an instance using moshi for conversion.
- create() - Static method in class retrofit2.converter.protobuf.ProtoConverterFactory
-
- create() - Static method in class retrofit2.converter.scalars.ScalarsConverterFactory
-
- create() - Static method in class retrofit2.converter.simplexml.SimpleXmlConverterFactory
-
Create an instance using a default Persister instance for conversion.
- create(Serializer) - Static method in class retrofit2.converter.simplexml.SimpleXmlConverterFactory
-
Create an instance using serializer for conversion.
- create() - Static method in class retrofit2.converter.wire.WireConverterFactory
-
- create(Class<T>) - Method in class retrofit2.mock.MockRetrofit
-
- create() - Static method in class retrofit2.mock.NetworkBehavior
-
Create an instance with default behavior.
- create(Random) - Static method in class retrofit2.mock.NetworkBehavior
-
Create an instance with default behavior which uses random to control variance and
failure calculation.
- create(Class<T>) - Method in class retrofit2.Retrofit
-
Create an implementation of the API endpoints defined by the service interface.
- createAsync() - Static method in class retrofit2.adapter.rxjava.RxJavaCallAdapterFactory
-
Returns an instance which creates asynchronous observables.
- createAsync() - Static method in class retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
-
Returns an instance which creates asynchronous observables.
- createErrorResponse() - Method in class retrofit2.mock.NetworkBehavior
-
The HTTP error to be used when an error is triggered.
- createNonStrict() - Static method in class retrofit2.converter.simplexml.SimpleXmlConverterFactory
-
Create an instance using a default Persister instance for non-strict conversion.
- createNonStrict(Serializer) - Static method in class retrofit2.converter.simplexml.SimpleXmlConverterFactory
-
Create an instance using serializer for non-strict conversion.
- createWithRegistry(ExtensionRegistryLite) - Static method in class retrofit2.converter.protobuf.ProtoConverterFactory
-
Create an instance which uses registry when deserializing.
- createWithScheduler(Scheduler) - Static method in class retrofit2.adapter.rxjava.RxJavaCallAdapterFactory
-
Returns an instance which creates synchronous observables that
subscribe on scheduler by default.
- createWithScheduler(Scheduler) - Static method in class retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
-
Returns an instance which creates synchronous observables that
subscribe on scheduler by default.