Tabnine Logo
FirewallConfig.add
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Adds a rule that forbids access to the given set of IP addresses.
 * 
 * @param blackList
 *            The list of rejected IP addresses.
 */
public void addIpAddressesBlackList(List<String> blackList) {
  add(new FirewallIpFilteringRule(blackList, false));
}
origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Adds a rule that forbids access to the given set of IP addresses.
 * 
 * @param blackList
 *            The list of rejected IP addresses.
 */
public void addIpAddressesBlackList(List<String> blackList) {
  add(new FirewallIpFilteringRule(blackList, false));
}
origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Adds a rule that restricts access to the given set of IP addresses.
 * 
 * @param whiteList
 *            The list of accepted IP addresses.
 */
public void addIpAddressesWhiteList(List<String> whiteList) {
  add(new FirewallIpFilteringRule(whiteList, true));
}
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Adds a rule that restricts access to the given set of IP addresses.
 * 
 * @param whiteList
 *            The list of accepted IP addresses.
 */
public void addIpAddressesWhiteList(List<String> whiteList) {
  add(new FirewallIpFilteringRule(whiteList, true));
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Adds a rule that forbids access to the given set of IP addresses.
 * 
 * @param blackList
 *            The list of rejected IP addresses.
 */
public void addIpAddressesBlackList(List<String> blackList) {
  add(new FirewallIpFilteringRule(blackList, false));
}
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Adds a rule that forbids access to the given set of IP addresses.
 * 
 * @param blackList
 *            The list of rejected IP addresses.
 */
public void addIpAddressesBlackList(List<String> blackList) {
  add(new FirewallIpFilteringRule(blackList, false));
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Adds a rule that restricts access to the given set of IP addresses.
 * 
 * @param whiteList
 *            The list of accepted IP addresses.
 */
public void addIpAddressesWhiteList(List<String> whiteList) {
  add(new FirewallIpFilteringRule(whiteList, true));
}
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Adds a rule that restricts access to the given set of IP addresses.
 * 
 * @param whiteList
 *            The list of accepted IP addresses.
 */
public void addIpAddressesWhiteList(List<String> whiteList) {
  add(new FirewallIpFilteringRule(whiteList, true));
}
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Adds a rule that restricts access according to the IP address of the
 * request's client. A unique limit is applied for all IP addresses.
 * 
 * @param limit
 *            The maximum number of accepted concurrent requests.
 */
public void addIpAddressesConcurrencyCounter(int limit) {
  FirewallCounterRule rule = new ConcurrentFirewallCounterRule(
      new IpAddressCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Adds a rule that restricts access according to the IP address of the
 * request's client. A unique limit is applied for all IP addresses.
 * 
 * @param limit
 *            The maximum number of accepted concurrent requests.
 */
public void addIpAddressesConcurrencyCounter(int limit) {
  FirewallCounterRule rule = new ConcurrentFirewallCounterRule(
      new IpAddressCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Adds a rule that restricts access according to the IP address of the
 * request's client. A unique limit is applied for all IP addresses.
 * 
 * @param limit
 *            The maximum number of accepted concurrent requests.
 */
public void addIpAddressesConcurrencyCounter(int limit) {
  FirewallCounterRule rule = new ConcurrentFirewallCounterRule(
      new IpAddressCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Adds a rule that restricts access according to the IP address of the
 * request's client. A unique limit is applied for all IP addresses.
 * 
 * @param limit
 *            The maximum number of accepted concurrent requests.
 */
public void addIpAddressesConcurrencyCounter(int limit) {
  FirewallCounterRule rule = new ConcurrentFirewallCounterRule(
      new IpAddressCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Adds a rule that limits the number of concurrent requests by request's
 * host domain.
 * 
 * @param limit
 *            The maximum number of requests allowed by host domain at the
 *            same time.
 */
public void addHostDomainConcurrencyCounter(int limit) {
  FirewallCounterRule rule = new ConcurrentFirewallCounterRule(
      new HostDomainCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Adds a rule that limits the number of concurrent requests by request's
 * host domain.
 * 
 * @param limit
 *            The maximum number of requests allowed by host domain at the
 *            same time.
 */
public void addHostDomainConcurrencyCounter(int limit) {
  FirewallCounterRule rule = new ConcurrentFirewallCounterRule(
      new HostDomainCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Adds a rule that limits the number of concurrent requests by request's
 * host domain.
 * 
 * @param limit
 *            The maximum number of requests allowed by host domain at the
 *            same time.
 */
public void addHostDomainConcurrencyCounter(int limit) {
  FirewallCounterRule rule = new ConcurrentFirewallCounterRule(
      new HostDomainCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Adds a rule that limits the number of concurrent requests by request's
 * host domain.
 * 
 * @param limit
 *            The maximum number of requests allowed by host domain at the
 *            same time.
 */
public void addHostDomainConcurrencyCounter(int limit) {
  FirewallCounterRule rule = new ConcurrentFirewallCounterRule(
      new HostDomainCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.jee/org.restlet.ext.platform

/**
 * Adds a rule that restricts access by period of time according to the IP
 * address of the request's client. A unique limit is applied for all IP
 * addresses.
 * 
 * @param period
 *            The period of time.
 * @param periodUnit
 *            Period time unit associated to the rule.
 * @param limit
 *            The maximum number of accepted requests for a period of time.
 */
public void addIpAddressesPeriodicCounter(int period, TimeUnit periodUnit,
    int limit) {
  FirewallCounterRule rule = new PeriodicFirewallCounterRule(period,
      periodUnit, new IpAddressCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.jse/org.restlet.ext.platform

/**
 * Adds a rule that restricts access by period of time according to the IP
 * address of the request's client. A unique limit is applied for all IP
 * addresses.
 * 
 * @param period
 *            The period of time.
 * @param periodUnit
 *            Period time unit associated to the rule.
 * @param limit
 *            The maximum number of accepted requests for a period of time.
 */
public void addIpAddressesPeriodicCounter(int period, TimeUnit periodUnit,
    int limit) {
  FirewallCounterRule rule = new PeriodicFirewallCounterRule(period,
      periodUnit, new IpAddressCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.gae/org.restlet.ext.platform

/**
 * Adds a rule that restricts access by period of time according to the IP
 * address of the request's client. A unique limit is applied for all IP
 * addresses.
 * 
 * @param period
 *            The period of time.
 * @param periodUnit
 *            Period time unit associated to the rule.
 * @param limit
 *            The maximum number of accepted requests for a period of time.
 */
public void addIpAddressesPeriodicCounter(int period, TimeUnit periodUnit,
    int limit) {
  FirewallCounterRule rule = new PeriodicFirewallCounterRule(period,
      periodUnit, new IpAddressCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
origin: org.restlet.osgi/org.restlet.ext.platform

/**
 * Adds a rule that restricts access by period of time according to the IP
 * address of the request's client. A unique limit is applied for all IP
 * addresses.
 * 
 * @param period
 *            The period of time.
 * @param periodUnit
 *            Period time unit associated to the rule.
 * @param limit
 *            The maximum number of accepted requests for a period of time.
 */
public void addIpAddressesPeriodicCounter(int period, TimeUnit periodUnit,
    int limit) {
  FirewallCounterRule rule = new PeriodicFirewallCounterRule(period,
      periodUnit, new IpAddressCountingPolicy());
  rule.addHandler(new BlockingHandler(new UniqueLimitPolicy(limit)));
  add(rule);
}
org.restlet.ext.platformFirewallConfigadd

Javadoc

Adds a rule to the firewall.

Popular methods of FirewallConfig

  • <init>
    Private Constructor.
  • addIpAddressesBlackList
    Adds a rule that forbids access to the given set of IP addresses.
  • addIpAddressesWhiteList
    Adds a rule that restricts 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

  • Creating JSON documents from java classes using gson
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now