org.swhite.daap
Class UpdateResponse

java.lang.Object
  extended byorg.swhite.daap.UpdateResponse

public class UpdateResponse
extends java.lang.Object

Created on Tuesday May 20, 2003

Author:
Steve White

Constructor Summary
UpdateResponse(byte[] data)
          Constructs a new UpdateResponse with the specified daap data.
UpdateResponse(java.lang.String hostname, int sessionID)
          Constructs a new UpdateResponse with a default port of 3689
UpdateResponse(java.lang.String hostname, int port, int sessionID)
          Constructs a new UpdateResponse
UpdateResponse(java.net.URL url)
          Constructs a new UpdateResponse with the data from the specified URL.
 
Method Summary
 int getServerRevision()
          Returns the server revision (daap tag musr)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateResponse

public UpdateResponse(byte[] data)
               throws ParserException
Constructs a new UpdateResponse with the specified daap data.

Parameters:
data - Raw daap data

UpdateResponse

public UpdateResponse(java.net.URL url)
               throws java.io.IOException,
                      ParserException
Constructs a new UpdateResponse with the data from the specified URL.

Parameters:
url - URL containing the UpdateResponse, e.g. http://localhost:3689/update?session-id=@@session-id@@

UpdateResponse

public UpdateResponse(java.lang.String hostname,
                      int sessionID)
               throws java.io.IOException,
                      java.net.MalformedURLException,
                      ParserException
Constructs a new UpdateResponse with a default port of 3689

Parameters:
hostname - The hostname of the daap server
sessionID - The Session ID from LoginResponse

UpdateResponse

public UpdateResponse(java.lang.String hostname,
                      int port,
                      int sessionID)
               throws java.io.IOException,
                      java.net.MalformedURLException,
                      ParserException
Constructs a new UpdateResponse

Parameters:
hostname - The hostname of the daap server
port - The port number the daap server is listening on
sessionID - The Session ID from LoginResponse
Method Detail

getServerRevision

public int getServerRevision()
Returns the server revision (daap tag musr)

Returns:
int

toString

public java.lang.String toString()