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

com.lajospolya.spotifyapiwrapper.reflection.IReflectiveSpotifyClientService Maven / Gradle / Ivy

Go to download

This project wraps the Spotify public API in order to allow users to intuitively use it

There is a newer version: 3.0.RELEASE
Show newest version
package com.lajospolya.spotifyapiwrapper.reflection;

import com.lajospolya.spotifyapiwrapper.request.AbstractSpotifyRequest;

import java.lang.reflect.*;
import java.net.http.HttpRequest;

public interface IReflectiveSpotifyClientService
{
    /**
     * Via reflection, sets the private field accessToken on spotifyRequest in order to authorize the request
     * @param spotifyRequest the request to set the access token on
     * @param accessToken the access token
     * @throws IllegalAccessException thrown by the java.lang.reflect method calls
     * @throws InvocationTargetException thrown by the java.lang.reflect method calls
     */
    void setAccessTokenOfRequest(AbstractSpotifyRequest spotifyRequest, String accessToken) throws IllegalAccessException, InvocationTargetException;

    /**
     * Via reflection, calls the private reflectiveBuildRequest method in order to build the request object
     * @param spotifyRequest the request to build
     * @return the built HTTP request
     * @throws InvocationTargetException thrown by the java.lang.reflect method calls
     * @throws IllegalAccessException thrown by the java.lang.reflect method calls
     */
    HttpRequest buildRequest(AbstractSpotifyRequest spotifyRequest) throws InvocationTargetException, IllegalAccessException;

    Type getParameterizedTypeOfRequest(AbstractSpotifyRequest spotifyRequest);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy