com.limegroup.gnutella.update
Class ServletRemoteUpdateInfo

java.lang.Object
  extended bycom.limegroup.gnutella.update.AbstractRemoteUpdateInfo
      extended bycom.limegroup.gnutella.update.ServletRemoteUpdateInfo

public final class ServletRemoteUpdateInfo
extends AbstractRemoteUpdateInfo

This class handles creating the update information for client requesting the update. It constructs the appropriate update information based on the data supplied by the client, such as the operating system, the LimeWire version, the version of ads the client is serving, etc.

This class is reconstructed on the client side by the ClientRemoteUpdateInfo class.


Field Summary
 
Fields inherited from class com.limegroup.gnutella.update.AbstractRemoteUpdateInfo
DIRECTIVE, DISPLAY_MESSAGE_STRING, MESSAGE_TO_DISPLAY, NO_UPDATE_STRING, OPEN_WEB_PAGE_STRING, UPDATE_ADS_STRING, UPDATE_CLASSPATH, UPDATE_JAR_STRING, UPDATE_MAIN_CLASS, UPDATE_URL
 
Constructor Summary
ServletRemoteUpdateInfo(ServletLocalUpdateInfo localInfo)
          Constructs a new ServletRemoteUpdateInfo instance based on the the data in the ServletLocalUpdateInfo instance.
 
Method Summary
 java.lang.String getURLEncodedString()
          Returns a string in url encoding containing the data for the remote remote update.
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletRemoteUpdateInfo

public ServletRemoteUpdateInfo(ServletLocalUpdateInfo localInfo)
                        throws java.io.IOException
Constructs a new ServletRemoteUpdateInfo instance based on the the data in the ServletLocalUpdateInfo instance.

This constructor is used on the servlet to generate the appropriate update data based on the information supplied by the client requesting the update.

Parameters:
localInfo - the ServletLocalUpdateInfo instance containing data about the cleint requesting the update
Method Detail

getURLEncodedString

public java.lang.String getURLEncodedString()
Returns a string in url encoding containing the data for the remote remote update.

This method is used on the servlet to obtain the url-encoded string of the update action to take to pass back to the client.

Returns:
an url-encoded String containing all of the necessary fields for performing the update

toString

public java.lang.String toString()

main

public static void main(java.lang.String[] args)