public interface Connection
Modifier and Type | Method and Description |
---|---|
SubsonicResponse |
createPlaylist(java.util.ArrayList<java.lang.String> songsList,
java.lang.String name) |
SubsonicResponse |
deletePlaylist(java.lang.String playlistId) |
java.io.InputStream |
download(java.lang.String uniqueId) |
GetAlbumsResponse |
getAlbumsList(GetAlbumsType type) |
GetAlbumsResponse |
getAlbumsList(GetAlbumsType type,
int size) |
GetAlbumsResponse |
getAlbumsList(GetAlbumsType type,
int size,
int offset) |
java.awt.image.BufferedImage |
getCoverArt(java.lang.String coverId) |
java.awt.image.BufferedImage |
getCoverArt(java.lang.String coverArt,
int size) |
GetIndexesResponse |
getIndexes() |
GetIndexesResponse |
getIndexes(long modifiedSince) |
GetIndexesResponse |
getIndexes(java.lang.String musicFolderId) |
GetLicenseResponse |
getLicense() |
GetMusicDirectoryResponse |
getMusicDirectory(java.lang.String uniqueFolderId) |
GetMusicFoldersResponse |
getMusicFolders() |
GetPlaylistResponse |
getPlaylist(java.lang.String playlistId) |
GetPlaylistsResponse |
getPlaylists() |
GetPodcastResponse |
getPodcastEpisodes(java.lang.String podcastId) |
GetPodcastsResponse |
getPodcasts() |
GetRandomSongsResponse |
getRandomSongs() |
GetRandomSongsResponse |
getRandomSongs(java.lang.String folderId) |
GetRandomSongsResponse |
getRandomSongs(java.lang.String folderId,
int size) |
java.lang.String |
getStreamURL(java.lang.String uniqueId) |
java.lang.String |
getStreamURL(java.lang.String uniqueId,
int maxBitRate) |
boolean |
ping() |
SearchResponse |
search(java.lang.String query) |
SearchResponse |
search(java.lang.String query,
int count) |
SearchResponse |
search(java.lang.String query,
int count,
int offset) |
SubsonicResponse |
setRating(AlbumRating rating) |
java.io.InputStream |
stream(java.lang.String uniqueId) |
java.io.InputStream |
stream(java.lang.String uniqueId,
int maxBitRate) |
boolean ping()
GetLicenseResponse getLicense() throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, javax.xml.ws.http.HTTPException
com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
javax.xml.ws.http.HTTPException
GetMusicFoldersResponse getMusicFolders() throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, javax.xml.ws.http.HTTPException
com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
javax.xml.ws.http.HTTPException
GetIndexesResponse getIndexes() throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, javax.xml.ws.http.HTTPException
com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
javax.xml.ws.http.HTTPException
GetIndexesResponse getIndexes(java.lang.String musicFolderId) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, javax.xml.ws.http.HTTPException
musicFolderId
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
javax.xml.ws.http.HTTPException
GetIndexesResponse getIndexes(long modifiedSince) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, javax.xml.ws.http.HTTPException
modifiedSince
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
javax.xml.ws.http.HTTPException
GetMusicDirectoryResponse getMusicDirectory(java.lang.String uniqueFolderId) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, javax.xml.ws.http.HTTPException
uniqueFolderId
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
javax.xml.ws.http.HTTPException
SearchResponse search(java.lang.String query) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
query
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
SearchResponse search(java.lang.String query, int count) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
query
- count
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
SearchResponse search(java.lang.String query, int count, int offset) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
query
- count
- offset
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
GetPlaylistsResponse getPlaylists() throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, javax.xml.ws.http.HTTPException
com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
javax.xml.ws.http.HTTPException
GetPlaylistResponse getPlaylist(java.lang.String playlistId) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, javax.xml.ws.http.HTTPException
playlistId
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
javax.xml.ws.http.HTTPException
SubsonicResponse createPlaylist(java.util.ArrayList<java.lang.String> songsList, java.lang.String name) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
songsList
- name
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
SubsonicResponse deletePlaylist(java.lang.String playlistId) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
playlistId
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
GetAlbumsResponse getAlbumsList(GetAlbumsType type) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
type
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
java.lang.IllegalArgumentException
javax.xml.ws.http.HTTPException
GetAlbumsResponse getAlbumsList(GetAlbumsType type, int size) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
type
- size
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
java.lang.IllegalArgumentException
javax.xml.ws.http.HTTPException
GetAlbumsResponse getAlbumsList(GetAlbumsType type, int size, int offset) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
type
- size
- offset
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
java.lang.IllegalArgumentException
javax.xml.ws.http.HTTPException
GetRandomSongsResponse getRandomSongs() throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
GetRandomSongsResponse getRandomSongs(java.lang.String folderId) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
folderId
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
GetRandomSongsResponse getRandomSongs(java.lang.String folderId, int size) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
folderId
- size
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
GetPodcastsResponse getPodcasts() throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
GetPodcastResponse getPodcastEpisodes(java.lang.String podcastId) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
podcastId
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
SubsonicResponse setRating(AlbumRating rating) throws com.google.gson.JsonSyntaxException, java.io.IOException, SubsonicException, InvalidResponseException, CompatibilityException, javax.xml.ws.http.HTTPException
rating
- com.google.gson.JsonSyntaxException
java.io.IOException
SubsonicException
InvalidResponseException
CompatibilityException
javax.xml.ws.http.HTTPException
java.io.InputStream download(java.lang.String uniqueId) throws javax.xml.ws.http.HTTPException, java.io.IOException, InvalidResponseException
uniqueId
- javax.xml.ws.http.HTTPException
java.io.IOException
InvalidResponseException
java.io.InputStream stream(java.lang.String uniqueId) throws javax.xml.ws.http.HTTPException, java.io.IOException, InvalidResponseException
uniqueId
- javax.xml.ws.http.HTTPException
java.io.IOException
InvalidResponseException
java.io.InputStream stream(java.lang.String uniqueId, int maxBitRate) throws java.io.IOException, InvalidResponseException, javax.xml.ws.http.HTTPException
uniqueId
- maxBitRate
- java.io.IOException
InvalidResponseException
javax.xml.ws.http.HTTPException
java.lang.String getStreamURL(java.lang.String uniqueId)
uniqueId
- java.lang.String getStreamURL(java.lang.String uniqueId, int maxBitRate)
uniqueId
- maxBitRate
- java.awt.image.BufferedImage getCoverArt(java.lang.String coverId) throws java.io.IOException, InvalidResponseException, javax.xml.ws.http.HTTPException
coverId
- java.io.IOException
InvalidResponseException
javax.xml.ws.http.HTTPException
java.awt.image.BufferedImage getCoverArt(java.lang.String coverArt, int size) throws java.io.IOException, InvalidResponseException, javax.xml.ws.http.HTTPException
coverArt
- size
- java.io.IOException
InvalidResponseException
javax.xml.ws.http.HTTPException