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

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

package org.ctoolkit.restapi.client.adapter;

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

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 InsertExecutorAdaptee}.
 * It provides a default implementation of the {@link #executeInsert(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 AbstractInsertExecutorAdaptee
        extends AbstractGoogleClientAdaptee
        implements InsertExecutorAdaptee
{
    public AbstractInsertExecutorAdaptee( C client )
    {
        super( client );
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy