java.lang.Object
net.i2p.router.ClientTunnelSettings

public class ClientTunnelSettingsextends Object
Wrap up the client settings specifying their tunnel criteria.
  • Field Details

    • _inboundSettings

      private final TunnelPoolSettings _inboundSettings
      Settings for the client's inbound tunnels.
    • _outboundSettings

      private final TunnelPoolSettings _outboundSettings
      Settings for the client's outbound tunnels.
  • Constructor Details

    • ClientTunnelSettings

      public ClientTunnelSettings(Hash dest)
      Create tunnel settings for the given destination.
      Parameters:
      dest - the destination hash
  • Method Details

    • getInboundSettings

      public TunnelPoolSettings getInboundSettings()
      Get the settings for the client's inbound tunnel pool.
      Returns:
      the settings, created with the destination and never null
    • getOutboundSettings

      public TunnelPoolSettings getOutboundSettings()
      Get the settings for the client's outbound tunnel pool.
      Returns:
      the settings, created with the destination and never null
    • readFromProperties

      public void readFromProperties(Properties props)
      Load settings from the given properties.
      Parameters:
      props - the properties to load from
    • writeToProperties

      private void writeToProperties(Properties props)
      Writes both pools' settings into the properties.
      Parameters:
      props - where the settings are written
    • toString

      public String toString()
      Overrides:
      toString in class Object