Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jreceiver.common.rpc.xmlrpc
Class MenusImpl  view MenusImpl download MenusImpl.java

java.lang.Object
  extended byjreceiver.common.rpc.xmlrpc.XmlRpcBaseImpl
      extended byjreceiver.common.rpc.xmlrpc.MenusImpl
All Implemented Interfaces:
jreceiver.common.rpc.Menus, jreceiver.common.rpc.RpcBase

public class MenusImpl
extends XmlRpcBaseImpl
implements jreceiver.common.rpc.Menus

Menu-related queries to a remote server via XML-RPC.

Version:
$Revision: 1.6 $ $Date: 2002/07/31 11:29:42 $

Field Summary
 
Fields inherited from class jreceiver.common.rpc.xmlrpc.XmlRpcBaseImpl
log
 
Fields inherited from interface jreceiver.common.rpc.Menus
ENCODE_ALBUMS, ENCODE_ARTISTS, ENCODE_GENRES, ENCODE_TITLES, GET_ALBUM_MENU_RECS, GET_ARTIST_MENU_RECS, GET_GENRE_MENU_RECS, GET_TITLE_MENU_RECS, HANDLER_NAME
 
Fields inherited from interface jreceiver.common.rpc.RpcBase
DETECT
 
Constructor Summary
MenusImpl(java.net.URL remote_host, jreceiver.common.rec.security.User user)
          ctor for this implementation
 
Method Summary
 java.lang.String encodeAlbums(jreceiver.common.rec.util.TuneQuery tune_query, int driver_id, java.lang.String pattern, int rec_offset, int rec_count)
          obtain a list of albums, custom formatted, for use in a menu.
 java.lang.String encodeArtists(jreceiver.common.rec.util.TuneQuery tune_query, int driver_id, java.lang.String pattern, int rec_offset, int rec_count)
          obtain a list of artists, custom formatted, for use in a menu.
 java.lang.String encodeGenres(jreceiver.common.rec.util.TuneQuery tune_query, int driver_id, java.lang.String pattern, int rec_offset, int rec_count)
          obtain a list of genres, custom formatted, for use in a menu.
private  java.lang.String encodeHelper(java.lang.String method_name, jreceiver.common.rec.util.TuneQuery tune_query, int driver_id, java.lang.String pattern, int rec_offset, int rec_count)
          obtain formatted results from the host
 java.lang.String encodeTitles(jreceiver.common.rec.util.TuneQuery tune_query, int driver_id, java.lang.String pattern, int rec_offset, int rec_count)
          obtain a list of titles, custom formatted, for use in a menu.
 java.util.Vector getAlbumMenuRecs(jreceiver.common.rec.util.TuneQuery tune_query, int driver_id, int rec_offset, int rec_count)
          obtain a list of MenuRecs that specify album/cd names
 java.util.Vector getArtistMenuRecs(jreceiver.common.rec.util.TuneQuery tune_query, int driver_id, int rec_offset, int rec_count)
          obtain a list of MenuRecs that specify artist names
 java.util.Vector getGenreMenuRecs(jreceiver.common.rec.util.TuneQuery tune_query, int driver_id, int rec_offset, int rec_count)
          obtain a list of MenuRecs that specify genre names
private  java.util.Vector getRecsHelper(java.lang.String method_name, jreceiver.common.rec.util.TuneQuery tune_query, int driver_id, int rec_offset, int rec_count)
          obtain formatted results from the host
 java.util.Vector getTitleMenuRecs(jreceiver.common.rec.util.TuneQuery tune_query, int driver_id, int rec_offset, int rec_count)
          obtain a list of MenuRecs that specify tune titles
 
Methods inherited from class jreceiver.common.rpc.xmlrpc.XmlRpcBaseImpl
detect, execute, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jreceiver.common.rpc.RpcBase
detect
 

Constructor Detail

MenusImpl

public MenusImpl(java.net.URL remote_host,
                 jreceiver.common.rec.security.User user)
          throws jreceiver.common.rpc.RpcException
ctor for this implementation

Method Detail

getArtistMenuRecs

public java.util.Vector getArtistMenuRecs(jreceiver.common.rec.util.TuneQuery tune_query,
                                          int driver_id,
                                          int rec_offset,
                                          int rec_count)
                                   throws jreceiver.common.rpc.RpcException
obtain a list of MenuRecs that specify artist names

Specified by:
getArtistMenuRecs in interface jreceiver.common.rpc.Menus

getAlbumMenuRecs

public java.util.Vector getAlbumMenuRecs(jreceiver.common.rec.util.TuneQuery tune_query,
                                         int driver_id,
                                         int rec_offset,
                                         int rec_count)
                                  throws jreceiver.common.rpc.RpcException
obtain a list of MenuRecs that specify album/cd names

Specified by:
getAlbumMenuRecs in interface jreceiver.common.rpc.Menus

getGenreMenuRecs

public java.util.Vector getGenreMenuRecs(jreceiver.common.rec.util.TuneQuery tune_query,
                                         int driver_id,
                                         int rec_offset,
                                         int rec_count)
                                  throws jreceiver.common.rpc.RpcException
obtain a list of MenuRecs that specify genre names

Specified by:
getGenreMenuRecs in interface jreceiver.common.rpc.Menus

getTitleMenuRecs

public java.util.Vector getTitleMenuRecs(jreceiver.common.rec.util.TuneQuery tune_query,
                                         int driver_id,
                                         int rec_offset,
                                         int rec_count)
                                  throws jreceiver.common.rpc.RpcException
obtain a list of MenuRecs that specify tune titles

Specified by:
getTitleMenuRecs in interface jreceiver.common.rpc.Menus

encodeArtists

public java.lang.String encodeArtists(jreceiver.common.rec.util.TuneQuery tune_query,
                                      int driver_id,
                                      java.lang.String pattern,
                                      int rec_offset,
                                      int rec_count)
                               throws jreceiver.common.rpc.RpcException
obtain a list of artists, custom formatted, for use in a menu.

Specified by:
encodeArtists in interface jreceiver.common.rpc.Menus

encodeAlbums

public java.lang.String encodeAlbums(jreceiver.common.rec.util.TuneQuery tune_query,
                                     int driver_id,
                                     java.lang.String pattern,
                                     int rec_offset,
                                     int rec_count)
                              throws jreceiver.common.rpc.RpcException
obtain a list of albums, custom formatted, for use in a menu.

Specified by:
encodeAlbums in interface jreceiver.common.rpc.Menus

encodeGenres

public java.lang.String encodeGenres(jreceiver.common.rec.util.TuneQuery tune_query,
                                     int driver_id,
                                     java.lang.String pattern,
                                     int rec_offset,
                                     int rec_count)
                              throws jreceiver.common.rpc.RpcException
obtain a list of genres, custom formatted, for use in a menu.

Specified by:
encodeGenres in interface jreceiver.common.rpc.Menus

encodeTitles

public java.lang.String encodeTitles(jreceiver.common.rec.util.TuneQuery tune_query,
                                     int driver_id,
                                     java.lang.String pattern,
                                     int rec_offset,
                                     int rec_count)
                              throws jreceiver.common.rpc.RpcException
obtain a list of titles, custom formatted, for use in a menu.

Specified by:
encodeTitles in interface jreceiver.common.rpc.Menus

getRecsHelper

private java.util.Vector getRecsHelper(java.lang.String method_name,
                                       jreceiver.common.rec.util.TuneQuery tune_query,
                                       int driver_id,
                                       int rec_offset,
                                       int rec_count)
                                throws jreceiver.common.rpc.RpcException
obtain formatted results from the host


encodeHelper

private java.lang.String encodeHelper(java.lang.String method_name,
                                      jreceiver.common.rec.util.TuneQuery tune_query,
                                      int driver_id,
                                      java.lang.String pattern,
                                      int rec_offset,
                                      int rec_count)
                               throws jreceiver.common.rpc.RpcException
obtain formatted results from the host