com.limegroup.gnutella.bugs
Class RemoteServletInfo

java.lang.Object
  extended bycom.limegroup.gnutella.bugs.RemoteAbstractInfo
      extended bycom.limegroup.gnutella.bugs.RemoteServletInfo

public final class RemoteServletInfo
extends RemoteAbstractInfo

This class handles creating the bug information for client reporting the bug. It constructs the appropriate bug information based on the data supplied by the client, such as the operating system, the LimeWire version, etc.

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


Field Summary
 
Fields inherited from class com.limegroup.gnutella.bugs.RemoteAbstractInfo
NEXT_ANY_BUG_TIME, NEXT_THIS_BUG_TIME
 
Constructor Summary
RemoteServletInfo()
           
 
Method Summary
 java.lang.String getURLEncodedString(LocalServletInfo localInfo)
          Generates the appropriate response based on the information supplied by the client reporting the bug.
static RemoteServletInfo instance()
          The only instance of this class to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteServletInfo

public RemoteServletInfo()
Method Detail

instance

public static RemoteServletInfo instance()
The only instance of this class to use.


getURLEncodedString

public java.lang.String getURLEncodedString(LocalServletInfo localInfo)
                                     throws java.io.IOException
Generates the appropriate response based on the information supplied by the client reporting the bug. Returns a string in url encoding containing the data for the remote remote update.

Parameters:
localInfo - the LocalServletInfo instance containing data about the client reporting the bug
Returns:
an url-encoded String containing all of the necessary fields for responding to the bug report
Throws:
java.io.IOException