LimeWire Consolidated API

com.limegroup.gnutella
Class NetworkUpdateSanityChecker

java.lang.Object
  extended by com.limegroup.gnutella.NetworkUpdateSanityChecker

public class NetworkUpdateSanityChecker
extends Object

A sanity checker for many different in-network verification requests. If we cannot verify the message as received from a number of hosts from different areas, message the user to hit the website as the installation may possible be corrupted.


Nested Class Summary
static class NetworkUpdateSanityChecker.RequestType
           
 
Constructor Summary
NetworkUpdateSanityChecker(com.google.inject.Provider<ActivityCallback> activityCallback)
           
 
Method Summary
 void handleInvalidResponse(ReplyHandler handler, NetworkUpdateSanityChecker.RequestType type)
          Acknowledge we received an invalid response from the source.
 void handleNewRequest(ReplyHandler handler, NetworkUpdateSanityChecker.RequestType type)
          Stores knowledge that we've requested a network-updatable component from the given source.
 void handleValidResponse(ReplyHandler handler, NetworkUpdateSanityChecker.RequestType type)
          Acknowledge we received a valid response from the source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkUpdateSanityChecker

@Inject
public NetworkUpdateSanityChecker(com.google.inject.Provider<ActivityCallback> activityCallback)
Method Detail

handleNewRequest

public void handleNewRequest(ReplyHandler handler,
                             NetworkUpdateSanityChecker.RequestType type)
Stores knowledge that we've requested a network-updatable component from the given source.

Parameters:
handler -

handleValidResponse

public void handleValidResponse(ReplyHandler handler,
                                NetworkUpdateSanityChecker.RequestType type)
Acknowledge we received a valid response from the source.

Parameters:
handler -

handleInvalidResponse

public void handleInvalidResponse(ReplyHandler handler,
                                  NetworkUpdateSanityChecker.RequestType type)
Acknowledge we received an invalid response from the source.

Parameters:
handler -

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.