com.limegroup.gnutella.update
Class ServletLocalUpdateInfo

java.lang.Object
  extended bycom.limegroup.gnutella.update.AbstractLocalUpdateInfo
      extended bycom.limegroup.gnutella.update.ServletLocalUpdateInfo

public class ServletLocalUpdateInfo
extends AbstractLocalUpdateInfo

This class encapsulates all of the data for an individual client machine for an individual update post.

The servlet utilizes this class to reconstruct the data for the client machine to determine the update information to return.


Field Summary
 
Fields inherited from class com.limegroup.gnutella.update.AbstractLocalUpdateInfo
_adVersion, _averageUptime, _everAcceptedIncoming, _everSupernodeCapable, _guid, _isPrivateIP, _jvm, _limeWireVersion, _maxDownstreamBytesPerSec, _maxUpstreamBytesPerSec, _os, ACCEPTED_INCOMING, AD_VERSION, AVERAGE_UPTIME, EVER_SUPERNODE, GUID, JVM, LIMEWIRE_VERSION, MAX_DOWNSTREAM, MAX_UPSTREAM, OLD_JVM, OLD_LIMEWIRE_VERSION, OLD_OS, OS, PRIVATE_IP
 
Constructor Summary
ServletLocalUpdateInfo()
           
 
Method Summary
 void addKeyValuePair(java.lang.String key, java.lang.String value)
          Adds one key/value pair to the data stored in this object.
 java.lang.String getAdVersion()
          Returns the ads version for the client requesting the update.
 java.lang.String getJavaVersion()
          Returns the java version for the client requesting the update.
 java.lang.String getLimeWireVersion()
          Accessor for the application version variable.
 java.lang.String getOS()
          Accessor for the operating system variable.
 
Methods inherited from class com.limegroup.gnutella.update.AbstractLocalUpdateInfo
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletLocalUpdateInfo

public ServletLocalUpdateInfo()
Method Detail

addKeyValuePair

public void addKeyValuePair(java.lang.String key,
                            java.lang.String value)
Adds one key/value pair to the data stored in this object. This method is used on the servlet to reconstruct the LocalUpdateInfo object.

Parameters:
key - the key for the pair
value - the value for the pair

getOS

public java.lang.String getOS()
Accessor for the operating system variable.

Returns:
a String representing the operating system

getLimeWireVersion

public java.lang.String getLimeWireVersion()
Accessor for the application version variable.

Returns:
a String representing the version of the application

getAdVersion

public java.lang.String getAdVersion()
Returns the ads version for the client requesting the update.

Returns:
the string for the ad version on the client

getJavaVersion

public java.lang.String getJavaVersion()
Returns the java version for the client requesting the update.

Returns:
the java version for the client