com.limegroup.gnutella.update
Class ServletRemoteUpdateInfo
java.lang.Object
com.limegroup.gnutella.update.AbstractRemoteUpdateInfo
com.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.
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 |
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
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)