All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.viber.bot.middleware.DefaultMiddleware Maven / Gradle / Ivy

package com.viber.bot.middleware;

import com.google.common.util.concurrent.ListenableFuture;
import com.viber.bot.Request;

import javax.annotation.Nonnull;
import java.io.InputStream;

public class DefaultMiddleware implements Middleware {

    private final Middleware middleware;

    public DefaultMiddleware(final @Nonnull RequestReceiver requestReceiver) {
        middleware = new PubSubMiddleware(requestReceiver);
    }

    @Override
    public ListenableFuture incoming(final Request request) {
        return middleware.incoming(request);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy