org.switchboard
Class ShoutcastResult

java.lang.Object
  extended by HttpClient
      extended by org.switchboard.browser.Browser
          extended by org.switchboard.ShoutcastResult
All Implemented Interfaces:
TreeModel

public class ShoutcastResult
extends Browser

Represents a shoutcast broadcast.


Constructor Summary
ShoutcastResult(String url)
           
 
Method Summary
 String getCurrentlyPlaying()
          Gets the song currently playing on the broadcast, according to the administration page.
 String getGenre()
          The genre of the broadcast.
 String getStatus()
          Gets the status of the station.
 String getTitle()
          Gets the title of the broadcast.
 
Methods inherited from class org.switchboard.browser.Browser
addCookie, addCookie, addListener, addTreeModelListener, clearCookies, getAcceptCookies, getChild, getChildCount, getImages, getIndexOfChild, getLinks, getRoot, getSentences, getURL, isLeaf, main, newHTML, newXML, numImages, open, query, refresh, removeTreeModelListener, save, save, setAcceptCookies, setTag, valueForPathChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShoutcastResult

public ShoutcastResult(String url)
Method Detail

getCurrentlyPlaying

public String getCurrentlyPlaying()
Gets the song currently playing on the broadcast, according to the administration page.

Returns:
The name of the song that is currently playing.

getGenre

public String getGenre()
The genre of the broadcast.

Returns:
The name of the genre.

getStatus

public String getStatus()
Gets the status of the station. Can either be 1. Server is currently down. 2. Server is currently up and public. 3. Probably other things too.

Returns:
The current status of the station.

getTitle

public String getTitle()
Gets the title of the broadcast.

Overrides:
getTitle in class Browser
Returns:
The title of the broadcast.