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

org.ctoolkit.restapi.client.adapter.AbstractUpdateExecutorAdaptee Maven / Gradle / Ivy

package org.ctoolkit.restapi.client.adapter;

import org.ctoolkit.restapi.client.adaptee.UpdateExecutorAdaptee;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.io.IOException;
import java.util.Locale;
import java.util.Map;

/**
 * The base Google client specific implementation of the {@link UpdateExecutorAdaptee}.
 * It provides a default implementation of the {@link #executeUpdate(Object, Map, Locale)} method.
 *
 * @param  the concrete type of the client instance
 * @param  the concrete type of the resource associated with this adaptee
 * @author Aurel Medvegy
 */
public abstract class AbstractUpdateExecutorAdaptee
        extends AbstractGoogleClientAdaptee
        implements UpdateExecutorAdaptee
{
    public AbstractUpdateExecutorAdaptee( C client )
    {
        super( client );
    }

    @Override
    public Object executeUpdate( @Nonnull Object request,
                                 @Nullable Map parameters,
                                 @Nullable Locale locale )
            throws IOException
    {
        return execute( request, parameters );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy