Skip navigation links
A C E F G I M N O R S W 

A

AndroidMockValuePersistence - Class in retrofit.android
A value change listener for MockRestAdapter which stores any customized behavior values into shared preferences.

C

calculateDelayForCall() - Method in class retrofit.MockRestAdapter
Get the delay (in milliseconds) that should be used for delaying a network call response.
calculateDelayForError() - Method in class retrofit.MockRestAdapter
Get the delay (in milliseconds) that should be used for triggering a network error.
calculateIsFailure() - Method in class retrofit.MockRestAdapter
Randomly determine whether this call should result in a network failure.
create(Class<T>, T) - Method in class retrofit.MockRestAdapter
Wrap the supplied mock implementation of a service so that it exhibits the delay and error characteristics of a real network.

E

EMPTY - Static variable in interface retrofit.MockRestAdapter.ValueChangeListener
 

F

from(RestAdapter) - Static method in class retrofit.MockRestAdapter
Create a new MockRestAdapter which will act as a factory for mock services.

G

getDelay() - Method in class retrofit.MockRestAdapter
The network round trip delay, in milliseconds
getErrorPercentage() - Method in class retrofit.MockRestAdapter
The percentage of calls to MockRestAdapter.calculateIsFailure() that return true.
getVariancePercentage() - Method in class retrofit.MockRestAdapter
The plus-or-minus variance percentage of the network round trip delay.

I

install(MockRestAdapter, SharedPreferences) - Static method in class retrofit.android.AndroidMockValuePersistence
Install a value change listener on the supplied MockRestAdapter using the SharedPreferences for storing customized behavior values.

M

MockHttpException - Exception in retrofit
An exception used to trigger the simulation of an HTTP error for mock services.
MockHttpException(int, String, Object) - Constructor for exception retrofit.MockHttpException
Create a new HTTP exception.
MockRestAdapter - Class in retrofit
Wraps mock implementations of API interfaces so that they exhibit the delay and error characteristics of a real network.
MockRestAdapter.ValueChangeListener - Interface in retrofit
A listener invoked when the network behavior values for a MockRestAdapter change.

N

newBadRequest(Object) - Static method in exception retrofit.MockHttpException
Create a new MockHttpException for HTTP 400 Bad Request.
newForbidden(Object) - Static method in exception retrofit.MockHttpException
Create a new MockHttpException for HTTP 403 Forbidden.
newInternalError(Object) - Static method in exception retrofit.MockHttpException
Create a new MockHttpException for HTTP 500 Internal Server Error.
newMovedPermanentely(String, Object) - Static method in exception retrofit.MockHttpException
Create a new MockHttpException for HTTP 301 Moved Permanently.
newMovedTemporarily(String, Object) - Static method in exception retrofit.MockHttpException
Create a new MockHttpException for HTTP 302 Moved Temporarily.
newNotFound(Object) - Static method in exception retrofit.MockHttpException
Create a new MockHttpException for HTTP 404 Not Found.
newUnauthorized(Object) - Static method in exception retrofit.MockHttpException
Create a new MockHttpException for HTTP 401 Unauthorized.

O

onMockValuesChanged(long, int, int) - Method in class retrofit.android.AndroidMockValuePersistence
 
onMockValuesChanged(long, int, int) - Method in interface retrofit.MockRestAdapter.ValueChangeListener
 

R

retrofit - package retrofit
 
retrofit.android - package retrofit.android
 

S

setDelay(long) - Method in class retrofit.MockRestAdapter
Set the network round trip delay, in milliseconds.
setErrorPercentage(int) - Method in class retrofit.MockRestAdapter
Set the percentage of calls to MockRestAdapter.calculateIsFailure() that return true.
setValueChangeListener(MockRestAdapter.ValueChangeListener) - Method in class retrofit.MockRestAdapter
Set a listener to be notified when any mock value changes.
setVariancePercentage(int) - Method in class retrofit.MockRestAdapter
Set the plus-or-minus variance percentage of the network round trip delay.

W

withHeader(String, String) - Method in exception retrofit.MockHttpException
Add a header to the response.
A C E F G I M N O R S W 
Skip navigation links

Copyright © 2015 Square, Inc.. All Rights Reserved.