Example usage for com.squareup.okhttp Callback interface-usage

List of usage examples for com.squareup.okhttp Callback interface-usage

Introduction

In this page you can find the example usage for com.squareup.okhttp Callback interface-usage.

Usage

From source file co.paralleluniverse.fibers.okhttp.RecordingCallback.java

/**
 * Records received HTTP responses so they can be later retrieved by tests.
 */
public class RecordingCallback implements Callback {
    public static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(10);

From source file co.paralleluniverse.fibers.okhttp.test.utils.original.RecordingCallback.java

/**
 * Records received HTTP responses so they can be later retrieved by tests.
 */
public class RecordingCallback implements Callback {
    public static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.toMillis(10);

From source file com.auth0.api.internal.ApplicationInfoRequest.java

class ApplicationInfoRequest extends BaseRequest<Application> implements Callback {

    private static final String TAG = ApplicationInfoRequest.class.getName();

    public ApplicationInfoRequest(Handler handler, OkHttpClient client, HttpUrl url, ObjectMapper mapper) {
        super(handler, url, client, mapper.reader(Application.class), null);

From source file com.auth0.api.internal.BaseRequest.java

abstract class BaseRequest<T> implements ParameterizableRequest<T>, AuthorizableRequest<T>, Callback {

    private static final String TAG = BaseCallback.class.getName();

    private final Handler handler;
    private final Map<String, String> headers;

From source file com.auth0.api.internal.SimpleRequest.java

class SimpleRequest<T> extends BaseRequest<T> implements Request<T>, ParameterizableRequest<T>, Callback {

    private static final String TAG = SimpleRequest.class.getName();

    private final ObjectReader errorReader;
    private final String method;

From source file com.auth0.api.internal.VoidRequest.java

class VoidRequest extends BaseRequest<Void> implements Callback {

    private static final String TAG = VoidRequest.class.getName();

    private final ObjectReader errorReader;
    private final String httpMethod;

From source file com.auth0.request.internal.BaseRequest.java

abstract class BaseRequest<T> implements ParameterizableRequest<T>, AuthorizableRequest<T>, Callback {

    private final Map<String, String> headers;
    protected final HttpUrl url;
    protected final OkHttpClient client;
    private final ObjectReader reader;

From source file com.auth0.request.internal.SimpleRequest.java

class SimpleRequest<T> extends BaseRequest<T> implements ParameterizableRequest<T>, Callback {

    private final String method;

    public SimpleRequest(HttpUrl url, OkHttpClient client, ObjectMapper mapper, String httpMethod, Class<T> clazz) {
        super(url, client, mapper.reader(clazz), mapper.reader(new TypeReference<Map<String, Object>>() {

From source file com.auth0.request.internal.VoidRequest.java

class VoidRequest extends BaseRequest<Void> implements Callback {

    private final String httpMethod;

    public VoidRequest(HttpUrl url, OkHttpClient client, ObjectMapper mapper, String httpMethod) {
        super(url, client, null, mapper.reader(new TypeReference<Map<String, Object>>() {

From source file com.commonsware.android.backup.RestoreRosterFragment.java

public class RestoreRosterFragment extends ListFragment implements Callback {
    private static final String URL_BACKUPS = BuildConfig.URL_SERVER + "/api/backups";
    private ArrayAdapter<BackupMetadata> adapter;

    @Override
    public void onCreate(Bundle savedInstanceState) {