java.lang.Object
net.i2p.client.I2PClientFactory

public class I2PClientFactoryextends Object
Provide a means of hooking into an appropriate I2PClient implementation.
  • Constructor Details

    • I2PClientFactory

      public I2PClientFactory()
      Constructor. Clients are always built by the static createClient() for a given context, so an instance carries no state.
  • Method Details

    • createClient

      public static I2PClient createClient(I2PAppContext context)
      Create a new instance of the appropriate I2PClient with a specific context.
      Parameters:
      context - the I2PAppContext to use
      Returns:
      a new I2PClientImpl bound to that context
    • createClient

      public static I2PClient createClient()
      Create a new instance of the appropriate I2PClient.
      Returns:
      a new I2PClientImpl bound to the global context