Skip navigation links
A B C D E F G H I J L M N O P Q R S T U V W 

A

adapt(Call<R>) - Method in interface retrofit2.CallAdapter
Returns an instance of T which delegates to call.
addCallAdapterFactory(CallAdapter.Factory) - Method in class retrofit2.Retrofit.Builder
Add a call adapter factory for supporting service method return types other than Call.
addConverterFactory(Converter.Factory) - Method in class retrofit2.Retrofit.Builder
Add converter factory for serialization and deserialization of objects.
API_URL - Static variable in class com.example.retrofit.SimpleService
 
asLenient() - Method in class retrofit2.converter.moshi.MoshiConverterFactory
Return a new factory which uses lenient adapters.

B

backgroundExecutor() - Method in class retrofit2.mock.MockRetrofit
 
backgroundExecutor(ExecutorService) - Method in class retrofit2.mock.MockRetrofit.Builder
 
baseUrl() - Method in class retrofit2.Retrofit
The API base URL.
baseUrl(String) - Method in class retrofit2.Retrofit.Builder
Set the API base URL.
baseUrl(HttpUrl) - Method in class retrofit2.Retrofit.Builder
Set the API base URL.
BehaviorDelegate<T> - Class in retrofit2.mock
Applies behavior to responses and adapts them into the appropriate return type using the call adapters of Retrofit.
Body - Annotation Type in retrofit2.http
Use this annotation on a service method param when you want to directly control the request body of a POST/PUT request (instead of sending in as request parameters or form-style request body).
body() - Method in class retrofit2.Response
The deserialized response body of a successful response.
build() - Method in class retrofit2.mock.MockRetrofit.Builder
 
build() - Method in class retrofit2.Retrofit.Builder
Create the Retrofit instance using the configured values.
Builder(Retrofit) - Constructor for class retrofit2.mock.MockRetrofit.Builder
 
Builder() - Constructor for class retrofit2.Retrofit.Builder
 

C

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
Returns the CallAdapter for returnType from the available factories.
CallAdapter.Factory - Class in retrofit2
Creates CallAdapter instances based on the return type of the service interface methods.
callAdapterFactories() - Method in class retrofit2.Retrofit
Returns a list of the factories tried when creating a Retrofit.callAdapter(Type, Annotation[]) call adapter}.
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
The executor used for Callback methods on a Call.
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
Returns a list of the factories tried when creating a request body converter, a response body converter, or a string converter.
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.

D

defer(Callable<Call<T>>) - Static method in class retrofit2.mock.Calls
Invokes callable once for the returned Call and once for each instance that is obtained from cloning the returned Call.
delay(TimeUnit) - Method in class retrofit2.mock.NetworkBehavior
The network round trip delay.
DELETE - Annotation Type in retrofit2.http
Make a DELETE request.
DeserializeErrorBody - Class in com.example.retrofit
 
DeserializeErrorBody() - Constructor for class com.example.retrofit.DeserializeErrorBody
 
DynamicBaseUrl - Class in com.example.retrofit
This example uses an OkHttp interceptor to change the target hostname dynamically at runtime.
DynamicBaseUrl() - Constructor for class com.example.retrofit.DynamicBaseUrl
 
DynamicBaseUrl.Pop - Interface in com.example.retrofit
 

E

enqueue(Callback<T>) - Method in interface retrofit2.Call
Asynchronously send the request and notify callback of its response or if an error occurred talking to the server, creating the request, or processing the response.
error(Throwable) - Static method in class retrofit2.adapter.rxjava.Result
 
error() - Method in class retrofit2.adapter.rxjava.Result
The error experienced while attempting to execute an HTTP request.
error(Throwable) - Static method in class retrofit2.adapter.rxjava2.Result
 
error() - Method in class retrofit2.adapter.rxjava2.Result
The error experienced while attempting to execute an HTTP request.
error(int, ResponseBody) - Static method in class retrofit2.Response
Create a synthetic error response with an HTTP status code of code and body as the error body.
error(ResponseBody, Response) - Static method in class retrofit2.Response
Create an error response from rawResponse with body as the error body.
errorBody() - Method in class retrofit2.Response
The raw response body of an unsuccessful response.
ErrorHandlingAdapter - Class in com.example.retrofit
A sample showing a custom CallAdapter which adapts the built-in Call to a custom version whose callback has more granular methods.
ErrorHandlingAdapter() - Constructor for class com.example.retrofit.ErrorHandlingAdapter
 
ErrorHandlingAdapter.ErrorHandlingCallAdapterFactory - Class in com.example.retrofit
 
ErrorHandlingCallAdapterFactory() - Constructor for class com.example.retrofit.ErrorHandlingAdapter.ErrorHandlingCallAdapterFactory
 
errorPercent() - Method in class retrofit2.mock.NetworkBehavior
The percentage of calls to NetworkBehavior.calculateIsError() that return true.
execute() - Method in interface retrofit2.Call
Synchronously send the request and return its response.

F

Factory() - Constructor for class retrofit2.CallAdapter.Factory
 
Factory() - Constructor for class retrofit2.Converter.Factory
 
failOnUnknown() - Method in class retrofit2.converter.moshi.MoshiConverterFactory
Return a new factory which uses JsonAdapter.failOnUnknown() adapters.
failure(IOException) - Static method in class retrofit2.mock.Calls
 
failureException() - Method in class retrofit2.mock.NetworkBehavior
The exception to be used when a failure is triggered.
failurePercent() - Method in class retrofit2.mock.NetworkBehavior
The percentage of calls to NetworkBehavior.calculateIsFailure() that return true.
Field - Annotation Type in retrofit2.http
Named pair for a form-encoded request.
FieldMap - Annotation Type in retrofit2.http
Named key/value pairs for a form-encoded request.
FormUrlEncoded - Annotation Type in retrofit2.http
Denotes that the request body will use form URL encoding.

G

get(Type, Annotation[], Retrofit) - Method in class com.example.retrofit.ErrorHandlingAdapter.ErrorHandlingCallAdapterFactory
 
get(Type, Annotation[], Retrofit) - Method in class retrofit2.adapter.guava.GuavaCallAdapterFactory
 
get(Type, Annotation[], Retrofit) - Method in class retrofit2.adapter.java8.Java8CallAdapterFactory
 
get(Type, Annotation[], Retrofit) - Method in class retrofit2.adapter.rxjava.RxJavaCallAdapterFactory
 
get(Type, Annotation[], Retrofit) - Method in class retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
 
get(Type, Annotation[], Retrofit) - Method in class retrofit2.CallAdapter.Factory
Returns a call adapter for interface methods that return returnType, or null if it cannot be handled by this factory.
GET - Annotation Type in retrofit2.http
Make a GET request.
getParameterUpperBound(int, ParameterizedType) - Static method in class retrofit2.CallAdapter.Factory
Extract the upper bound of the generic parameter at index from type.
getParameterUpperBound(int, ParameterizedType) - Static method in class retrofit2.Converter.Factory
Extract the upper bound of the generic parameter at index from type.
getRawType(Type) - Static method in class retrofit2.CallAdapter.Factory
Extract the raw class type from type.
getRawType(Type) - Static method in class retrofit2.Converter.Factory
Extract the raw class type from type.
GsonConverterFactory - Class in retrofit2.converter.gson
A converter which uses Gson for JSON.
GuavaCallAdapterFactory - Class in retrofit2.adapter.guava
A call adapter which creates Guava futures.
GuavaOptionalConverterFactory - Class in retrofit.converter.guava
A converter for Optional<T> which delegates to another converter to deserialize T and then wraps it into Optional.

H

HEAD - Annotation Type in retrofit2.http
Make a HEAD request.
Header - Annotation Type in retrofit2.http
Replaces the header with the value of its target.
HeaderMap - Annotation Type in retrofit2.http
Adds headers specified in the Map.
Headers - Annotation Type in retrofit2.http
Adds headers literally supplied in the value.
headers() - Method in class retrofit2.Response
HTTP headers.
HTTP - Annotation Type in retrofit2.http
Use a custom HTTP verb for a request.
HttpException - Exception in retrofit2.adapter.guava
Deprecated.
HttpException(Response<?>) - Constructor for exception retrofit2.adapter.guava.HttpException
Deprecated.
 
HttpException - Exception in retrofit2.adapter.java8
Deprecated.
HttpException(Response<?>) - Constructor for exception retrofit2.adapter.java8.HttpException
Deprecated.
 
HttpException - Exception in retrofit2.adapter.rxjava
Deprecated.
HttpException(Response<?>) - Constructor for exception retrofit2.adapter.rxjava.HttpException
Deprecated.
 
HttpException - Exception in retrofit2.adapter.rxjava2
Deprecated.
HttpException(Response<?>) - Constructor for exception retrofit2.adapter.rxjava2.HttpException
Deprecated.
 
HttpException - Exception in retrofit2
Exception for an unexpected, non-2xx HTTP response.
HttpException(Response<?>) - Constructor for exception retrofit2.HttpException
 

I

isCanceled() - Method in interface retrofit2.Call
True if Call.cancel() was called.
isError() - Method in class retrofit2.adapter.rxjava.Result
true if the request resulted in an error.
isError() - Method in class retrofit2.adapter.rxjava2.Result
true if the request resulted in an error.
isExecuted() - Method in interface retrofit2.Call
Returns true if this call has been either executed or enqueued.
isStrict() - Method in class retrofit2.converter.simplexml.SimpleXmlConverterFactory
 
isSuccessful() - Method in class retrofit2.Response
Returns true if Response.code() is in the range [200..300).

J

JacksonConverterFactory - Class in retrofit2.converter.jackson
A converter which uses Jackson.
Java8CallAdapterFactory - Class in retrofit2.adapter.java8
A call adapter which creates Java 8 futures.
Java8OptionalConverterFactory - Class in retrofit.converter.java8
A converter for Optional<T> which delegates to another converter to deserialize T and then wraps it into Optional.
JsonAndXmlConverters - Class in com.example.retrofit
Both the Gson converter and the Simple Framework converter accept all types.
JsonAndXmlConverters() - Constructor for class com.example.retrofit.JsonAndXmlConverters
 
JsonQueryParameters - Class in com.example.retrofit
 
JsonQueryParameters() - Constructor for class com.example.retrofit.JsonQueryParameters
 

L

login - Variable in class com.example.retrofit.SimpleService.Contributor
 

M

main(String...) - Static method in class com.example.retrofit.ChunkingConverter
 
main(String...) - Static method in class com.example.retrofit.Crawler
 
main(String...) - Static method in class com.example.retrofit.DeserializeErrorBody
 
main(String...) - Static method in class com.example.retrofit.DynamicBaseUrl
 
main(String...) - Static method in class com.example.retrofit.ErrorHandlingAdapter
 
main(String...) - Static method in class com.example.retrofit.JsonAndXmlConverters
 
main(String...) - Static method in class com.example.retrofit.JsonQueryParameters
 
main(String...) - Static method in class com.example.retrofit.RxJavaObserveOnMainThread
 
main(String...) - Static method in class com.example.retrofit.SimpleMockService
 
main(String...) - Static method in class com.example.retrofit.SimpleService
 
message() - Method in exception retrofit2.HttpException
HTTP status message.
message() - Method in class retrofit2.Response
HTTP status message or null if unknown.
MockRetrofit - Class in retrofit2.mock
 
MockRetrofit.Builder - Class in retrofit2.mock
 
MoshiConverterFactory - Class in retrofit2.converter.moshi
A converter which uses Moshi for JSON.
Multipart - Annotation Type in retrofit2.http
Denotes that the request body is multi-part.

N

networkBehavior(NetworkBehavior) - Method in class retrofit2.mock.MockRetrofit.Builder
 
networkBehavior() - Method in class retrofit2.mock.MockRetrofit
 
NetworkBehavior - Class in retrofit2.mock
A simple emulation of the behavior of network calls.
newBuilder() - Method in class retrofit2.Retrofit
 
nextCallAdapter(CallAdapter.Factory, Type, Annotation[]) - Method in class retrofit2.Retrofit
Returns the CallAdapter for returnType from the available factories except skipPast.
nextRequestBodyConverter(Converter.Factory, Type, Annotation[], Annotation[]) - Method in class retrofit2.Retrofit
Returns a Converter for type to RequestBody from the available factories except skipPast.
nextResponseBodyConverter(Converter.Factory, Type, Annotation[]) - Method in class retrofit2.Retrofit
Returns a Converter for ResponseBody to type from the available factories except skipPast.

O

onFailure(Call<T>, Throwable) - Method in interface retrofit2.Callback
Invoked when a network exception occurred talking to the server or when an unexpected exception occurred creating the request or processing the response.
onResponse(Call<T>, Response<T>) - Method in interface retrofit2.Callback
Invoked for a received HTTP response.
OPTIONS - Annotation Type in retrofit2.http
Make an OPTIONS request.

P

Part - Annotation Type in retrofit2.http
Denotes a single part of a multi-part request.
PartMap - Annotation Type in retrofit2.http
Denotes name and value parts of a multi-part request.
PATCH - Annotation Type in retrofit2.http
Make a PATCH request.
Path - Annotation Type in retrofit2.http
Named replacement in a URL path segment.
POST - Annotation Type in retrofit2.http
Make a POST request.
ProtoConverterFactory - Class in retrofit2.converter.protobuf
A converter which uses Protocol Buffers.
PUT - Annotation Type in retrofit2.http
Make a PUT request.

Q

Query - Annotation Type in retrofit2.http
Query parameter appended to the URL.
QueryMap - Annotation Type in retrofit2.http
Query parameter keys and values appended to the URL.
QueryName - Annotation Type in retrofit2.http
Query parameter appended to the URL that has no value.

R

raw() - Method in class retrofit2.Response
The raw response from the HTTP client.
request() - Method in interface retrofit2.Call
The original HTTP request.
requestBodyConverter(Type, Annotation[], Annotation[], Retrofit) - Method in class retrofit2.Converter.Factory
Returns a Converter for converting type to an HTTP request body, or null if type cannot be handled by this factory.
requestBodyConverter(Type, Annotation[], Annotation[], Retrofit) - Method in class retrofit2.converter.gson.GsonConverterFactory
 
requestBodyConverter(Type, Annotation[], Annotation[], Retrofit) - Method in class retrofit2.converter.jackson.JacksonConverterFactory
 
requestBodyConverter(Type, Annotation[], Annotation[], Retrofit) - Method in class retrofit2.converter.moshi.MoshiConverterFactory
 
requestBodyConverter(Type, Annotation[], Annotation[], Retrofit) - Method in class retrofit2.converter.protobuf.ProtoConverterFactory
 
requestBodyConverter(Type, Annotation[], Annotation[], Retrofit) - Method in class retrofit2.converter.scalars.ScalarsConverterFactory
 
requestBodyConverter(Type, Annotation[], Annotation[], Retrofit) - Method in class retrofit2.converter.simplexml.SimpleXmlConverterFactory
 
requestBodyConverter(Type, Annotation[], Annotation[], Retrofit) - Method in class retrofit2.converter.wire.WireConverterFactory
 
requestBodyConverter(Type, Annotation[], Annotation[]) - Method in class retrofit2.Retrofit
Returns a Converter for type to RequestBody from the available factories.
response(Response<T>) - Static method in class retrofit2.adapter.rxjava.Result
 
response() - Method in class retrofit2.adapter.rxjava.Result
The response received from executing an HTTP request.
response(Response<T>) - Static method in class retrofit2.adapter.rxjava2.Result
 
response() - Method in class retrofit2.adapter.rxjava2.Result
The response received from executing an HTTP request.
response() - Method in exception retrofit2.HttpException
The full HTTP response.
response(T) - Static method in class retrofit2.mock.Calls
 
response(Response<T>) - Static method in class retrofit2.mock.Calls
 
Response<T> - Class in retrofit2
An HTTP response.
responseBodyConverter(Type, Annotation[], Retrofit) - Method in class retrofit.converter.guava.GuavaOptionalConverterFactory
 
responseBodyConverter(Type, Annotation[], Retrofit) - Method in class retrofit.converter.java8.Java8OptionalConverterFactory
 
responseBodyConverter(Type, Annotation[], Retrofit) - Method in class retrofit2.Converter.Factory
Returns a Converter for converting an HTTP response body to type, or null if type cannot be handled by this factory.
responseBodyConverter(Type, Annotation[], Retrofit) - Method in class retrofit2.converter.gson.GsonConverterFactory
 
responseBodyConverter(Type, Annotation[], Retrofit) - Method in class retrofit2.converter.jackson.JacksonConverterFactory
 
responseBodyConverter(Type, Annotation[], Retrofit) - Method in class retrofit2.converter.moshi.MoshiConverterFactory
 
responseBodyConverter(Type, Annotation[], Retrofit) - Method in class retrofit2.converter.protobuf.ProtoConverterFactory
 
responseBodyConverter(Type, Annotation[], Retrofit) - Method in class retrofit2.converter.scalars.ScalarsConverterFactory
 
responseBodyConverter(Type, Annotation[], Retrofit) - Method in class retrofit2.converter.simplexml.SimpleXmlConverterFactory
 
responseBodyConverter(Type, Annotation[], Retrofit) - Method in class retrofit2.converter.wire.WireConverterFactory
 
responseBodyConverter(Type, Annotation[]) - Method in class retrofit2.Retrofit
Returns a Converter for ResponseBody to type from the available factories.
responseType() - Method in interface retrofit2.CallAdapter
Returns the value type that this adapter uses when converting the HTTP response body to a Java object.
Result<T> - Class in retrofit2.adapter.rxjava
The result of executing an HTTP request.
Result<T> - Class in retrofit2.adapter.rxjava2
The result of executing an HTTP request.
retrofit() - Method in class retrofit2.mock.MockRetrofit
 
Retrofit - Class in retrofit2
Retrofit adapts a Java interface to HTTP calls by using annotations on the declared methods to define how requests are made.
Retrofit.Builder - Class in retrofit2
Build a new Retrofit.
retrofit.converter.guava - package retrofit.converter.guava
 
retrofit.converter.java8 - package retrofit.converter.java8
 
retrofit2 - package retrofit2
Retrofit turns your REST API into a Java interface.
retrofit2.adapter.guava - package retrofit2.adapter.guava
 
retrofit2.adapter.java8 - package retrofit2.adapter.java8
 
retrofit2.adapter.rxjava - package retrofit2.adapter.rxjava
 
retrofit2.adapter.rxjava2 - package retrofit2.adapter.rxjava2
 
retrofit2.converter.gson - package retrofit2.converter.gson
 
retrofit2.converter.jackson - package retrofit2.converter.jackson
 
retrofit2.converter.moshi - package retrofit2.converter.moshi
 
retrofit2.converter.protobuf - package retrofit2.converter.protobuf
 
retrofit2.converter.scalars - package retrofit2.converter.scalars
 
retrofit2.converter.simplexml - package retrofit2.converter.simplexml
 
retrofit2.converter.wire - package retrofit2.converter.wire
 
retrofit2.http - package retrofit2.http
Annotations for interface methods to control the HTTP request behavior.
retrofit2.mock - package retrofit2.mock
 
returning(Call<R>) - Method in class retrofit2.mock.BehaviorDelegate
 
returningResponse(Object) - Method in class retrofit2.mock.BehaviorDelegate
 
robots() - Method in interface com.example.retrofit.DynamicBaseUrl.Pop
 
RxJava2CallAdapterFactory - Class in retrofit2.adapter.rxjava2
A call adapter which uses RxJava 2 for creating observables.
RxJavaCallAdapterFactory - Class in retrofit2.adapter.rxjava
A call adapter which uses RxJava for creating observables.
RxJavaObserveOnMainThread - Class in com.example.retrofit
 
RxJavaObserveOnMainThread() - Constructor for class com.example.retrofit.RxJavaObserveOnMainThread
 

S

ScalarsConverterFactory - Class in retrofit2.converter.scalars
A converter for strings and both primitives and their boxed types to text/plain bodies.
setDelay(long, TimeUnit) - Method in class retrofit2.mock.NetworkBehavior
Set the network round trip delay.
setErrorFactory(Callable<Response<?>>) - Method in class retrofit2.mock.NetworkBehavior
Set the error response factory to be used when an error is triggered.
setErrorPercent(int) - Method in class retrofit2.mock.NetworkBehavior
Set the percentage of calls to NetworkBehavior.calculateIsError() that return true.
setFailureException(Throwable) - Method in class retrofit2.mock.NetworkBehavior
Set the exception to be used when a failure is triggered.
setFailurePercent(int) - Method in class retrofit2.mock.NetworkBehavior
Set the percentage of calls to NetworkBehavior.calculateIsFailure() that return true.
setVariancePercent(int) - Method in class retrofit2.mock.NetworkBehavior
Set the plus-or-minus variance percentage of the network round trip delay.
SimpleMockService - Class in com.example.retrofit
An example of using MockRetrofit to create a mock service implementation with fake data.
SimpleMockService() - Constructor for class com.example.retrofit.SimpleMockService
 
SimpleService - Class in com.example.retrofit
 
SimpleService() - Constructor for class com.example.retrofit.SimpleService
 
SimpleService.Contributor - Class in com.example.retrofit
 
SimpleService.GitHub - Interface in com.example.retrofit
 
SimpleXmlConverterFactory - Class in retrofit2.converter.simplexml
A converter which uses Simple Framework for XML.
Streaming - Annotation Type in retrofit2.http
Treat the response body on methods returning Response as is, i.e.
stringConverter(Type, Annotation[], Retrofit) - Method in class retrofit2.Converter.Factory
Returns a Converter for converting type to a String, or null if type cannot be handled by this factory.
stringConverter(Type, Annotation[]) - Method in class retrofit2.Retrofit
Returns a Converter for type to String from the available factories.
success(T) - Static method in class retrofit2.Response
Create a synthetic successful response with body as the deserialized body.
success(T, Headers) - Static method in class retrofit2.Response
Create a synthetic successful response using headers with body as the deserialized body.
success(T, Response) - Static method in class retrofit2.Response
Create a successful response from rawResponse with body as the deserialized body.

T

toString() - Method in class retrofit2.adapter.rxjava.Result
 
toString() - Method in class retrofit2.Response
 

U

Url - Annotation Type in retrofit2.http
URL resolved against the base URL.

V

validateEagerly(boolean) - Method in class retrofit2.Retrofit.Builder
When calling Retrofit.create(java.lang.Class<T>) on the resulting Retrofit instance, eagerly validate the configuration of all methods in the supplied interface.
variancePercent() - Method in class retrofit2.mock.NetworkBehavior
The plus-or-minus variance percentage of the network round trip delay.

W

WireConverterFactory - Class in retrofit2.converter.wire
A converter that uses Wire for protocol buffers.
withNullSerialization() - Method in class retrofit2.converter.moshi.MoshiConverterFactory
Return a new factory which includes null values into the serialized JSON.
A B C D E F G H I J L M N O P Q R S T U V W 
Skip navigation links

Copyright © 2017 Square, Inc.. All rights reserved.