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 com.example.sample2.ExampleFragment1.java

/**
 * A simple {@link Fragment} subclass.
 * Use the {@link ExampleFragment1#newInstance} factory method to
 * create an instance of this fragment.
 */
public class ExampleFragment1 extends Fragment implements Callback {

From source file com.google.maps.internal.OkHttpPendingResult.java

/**
 * A PendingResult backed by a HTTP call executed by OkHttp, a deserialization step using Gson,
 * rate limiting and a retry policy.
 *
 * <p>{@code T} is the type of the result of this pending result, and {@code R} is the type of the
 * request.

From source file com.google.sample.libproximitybeacon.HttpCallback.java

/**
 * A wrapper around OkHttp's Callback class that runs its methods on the UI thread.
 */
class HttpCallback implements Callback {
    private final Callback delegate;
    private final Handler handler;

From source file com.groupon.mesos.util.HttpProtocolSender.java

/**
 * Sends out messages to the mesos master and slaves. A message is sent as a HTTP post with a
 * protobuf body. The Mesos 0.19+ framework will acknowledge messages that have no User-Agent: libprocess
 * header set with 202 (ACCEPTED). The message must contain a custom (Libprocess-From) header as the
 * sender.
 */

From source file com.malmstein.eddystonesample.proximitybeacon.HttpCallback.java

/**
 * A wrapper around OkHttp's Callback class that runs its methods on the UI thread.
 */
class HttpCallback implements Callback {
    private final Callback delegate;
    private final Handler handler;

From source file com.spotify.apollo.http.client.TransformingCallback.java

class TransformingCallback implements Callback {

    private static final Joiner HEADER_JOINER = Joiner.on(", ");

    private final CompletableFuture<Response<ByteString>> future;

From source file de.dev.eth0.rssreader.core.http.callback.FeedLoaderCallback.java

public interface FeedLoaderCallback extends Callback {

    /**
     * called after onRepsonse and onFailure. Can be used to perform additional actions
     */
    void afterCallback();

From source file de.dev.eth0.rssreader.core.http.callback.PrecacheCallback.java

public class PrecacheCallback implements Callback {

    @Override
    public void onResponse(Response response) throws IOException {
        Timber.d("onSuccess %d (cache: %s network: %s)", response.code(), response.cacheResponse(),
                response.networkResponse());

From source file inforuh.eventfinder.sync.SyncAdapter.java

/**
 * Created by tioammar
 * on 8/13/15.
 */
public class SyncAdapter extends AbstractThreadedSyncAdapter implements Callback {

From source file io.fabric8.docker.client.impl.ContainerLogHandle.java

public class ContainerLogHandle implements OutputErrorHandle, Callback {

    private static final Logger LOGGER = LoggerFactory.getLogger(ContainerLogHandle.class);

    private final OutputStream out;
    private final OutputStream err;