Codota Logo
FirewallConfig.addIpAddressesWhiteList
Code IndexAdd Codota to your IDE (free)

How to use
addIpAddressesWhiteList
method
in
org.restlet.ext.platform.FirewallConfig

Best Java code snippets using org.restlet.ext.platform.FirewallConfig.addIpAddressesWhiteList (Showing top 4 results out of 315)

  • Common ways to obtain FirewallConfig
private void myMethod () {
FirewallConfig f =
  • Codota IconList rules;new FirewallConfig(rules)
  • Smart code suggestions by Codota
}
origin: org.restlet.jse/org.restlet.ext.platform

private void addIpFilterRules(FirewallSettings firewallSettings,
    FirewallConfig firewallConfig) {
  if (firewallSettings.getIpFilters() != null) {
    for (FirewallIpFilter ipFilter : firewallSettings.getIpFilters()) {
      if (ipFilter.isWhiteList()) {
        firewallConfig.addIpAddressesWhiteList(ipFilter.getIps());
      } else {
        firewallConfig.addIpAddressesBlackList(ipFilter.getIps());
      }
    }
  }
}
origin: org.restlet.osgi/org.restlet.ext.platform

private void addIpFilterRules(FirewallSettings firewallSettings,
    FirewallConfig firewallConfig) {
  if (firewallSettings.getIpFilters() != null) {
    for (FirewallIpFilter ipFilter : firewallSettings.getIpFilters()) {
      if (ipFilter.isWhiteList()) {
        firewallConfig.addIpAddressesWhiteList(ipFilter.getIps());
      } else {
        firewallConfig.addIpAddressesBlackList(ipFilter.getIps());
      }
    }
  }
}
origin: org.restlet.jee/org.restlet.ext.platform

private void addIpFilterRules(FirewallSettings firewallSettings,
    FirewallConfig firewallConfig) {
  if (firewallSettings.getIpFilters() != null) {
    for (FirewallIpFilter ipFilter : firewallSettings.getIpFilters()) {
      if (ipFilter.isWhiteList()) {
        firewallConfig.addIpAddressesWhiteList(ipFilter.getIps());
      } else {
        firewallConfig.addIpAddressesBlackList(ipFilter.getIps());
      }
    }
  }
}
origin: org.restlet.gae/org.restlet.ext.platform

private void addIpFilterRules(FirewallSettings firewallSettings,
    FirewallConfig firewallConfig) {
  if (firewallSettings.getIpFilters() != null) {
    for (FirewallIpFilter ipFilter : firewallSettings.getIpFilters()) {
      if (ipFilter.isWhiteList()) {
        firewallConfig.addIpAddressesWhiteList(ipFilter.getIps());
      } else {
        firewallConfig.addIpAddressesBlackList(ipFilter.getIps());
      }
    }
  }
}
org.restlet.ext.platformFirewallConfigaddIpAddressesWhiteList

Javadoc

Adds a rule that restricts access to the given set of IP addresses.

Popular methods of FirewallConfig

  • <init>
    Private Constructor.
  • add
    Adds a rule to the firewall.
  • addIpAddressesBlackList
    Adds a rule that forbids access to the given set of IP addresses.
  • addRolesConcurrencyCounter
    Adds a rule that restricts access according to the Role of the current authenticated User. Each role
  • addRolesPeriodicCounter
    Adds a rule that restricts access according to the Role of the current authenticated User. Each role

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Join (org.hibernate.mapping)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now