Package freenet.config

Examples of freenet.config.InvalidConfigValueException


    public void set(String val) throws InvalidConfigValueException {
      if (!val.equals(get())) {
        try {
        node.getFCPServer().allowedHostsFullAccess.setAllowedHosts(val);
        } catch(IllegalArgumentException e) {
          throw new InvalidConfigValueException(e);
        }
      }
    }
View Full Code Here


    }

    @Override
    public void set(Integer val) throws InvalidConfigValueException {
      if (!get().equals(val)) {
        throw new InvalidConfigValueException("Cannot change FCP port number on the fly");
      }
    }
View Full Code Here

    }
//TODO: Allow it
    @Override
    public void set(Boolean val) throws InvalidConfigValueException {
      if (!get().equals(val)) {
        throw new InvalidConfigValueException(l10n("cannotStartOrStopOnTheFly"));
      }
    }
View Full Code Here

    @Override
    public void set(Boolean val) throws InvalidConfigValueException {
      if (get().equals(val))
        return;
      if(!SSL.available()) {
        throw new InvalidConfigValueException("Enable SSL support before use ssl with FCP");
      }
      ssl = val;
      throw new InvalidConfigValueException("Cannot change SSL on the fly, please restart freenet");
    }
View Full Code Here

        if(failedAddresses != null) {
          // This is an advanced option for reasons of reducing clutter,
          // but it is expected to be used by regular users, not devs.
          // So we translate the error messages.
          server.networkInterface.setBindTo(oldValue, true);
          throw new InvalidConfigValueException(l10n("couldNotChangeBindTo", "failedInterfaces", Arrays.toString(failedAddresses)));
        }
       
        server.networkInterface.setBindTo(val, true);
        server.bindTo = val;
       
View Full Code Here

    public void set(String val) throws InvalidConfigValueException {
      if (!val.equals(get())) {
        try {
        node.getFCPServer().networkInterface.setAllowedHosts(val);
        } catch(IllegalArgumentException e) {
          throw new InvalidConfigValueException(e);
        }
      }
    }
View Full Code Here

      @Override
    public void set(Boolean val) throws InvalidConfigValueException {
      if (get().equals(val))
        return;
        // FIXME implement - see bug #122
        throw new InvalidConfigValueException("Cannot be updated on the fly");
      }
View Full Code Here

      @Override
    public void set(Boolean val) throws InvalidConfigValueException {
      if (get().equals(val))
        return;
      if(!SSL.available()) {
        throw new InvalidConfigValueException("Enable SSL support before use ssl with TMCI");
      }
        ssl = val;
        throw new InvalidConfigValueException("Cannot change SSL on the fly, please restart freenet");
      }
View Full Code Here

      @Override
    public void set(Boolean val) throws InvalidConfigValueException {
      if (get().equals(val))
        return;
        // FIXME implement - see bug #122
        throw new InvalidConfigValueException("Cannot be updated on the fly");
      }
View Full Code Here

        String[] failedAddresses = core.getTextModeClientInterface().networkInterface.setBindTo(val, false);
      if(failedAddresses != null) {
        // This is an advanced option for reasons of reducing clutter,
        // but it is expected to be used by regular users, not devs.
        // So we translate the error messages.
        throw new InvalidConfigValueException("could not change bind to: "+Arrays.toString(failedAddresses));
      }
      core.getTextModeClientInterface().bindTo = val;
      }
View Full Code Here

TOP

Related Classes of freenet.config.InvalidConfigValueException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.