congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BlacklistFilter.block
Code IndexAdd Tabnine to your IDE (free)

How to use
block
method
in
org.apache.mina.filter.firewall.BlacklistFilter

Best Java code snippets using org.apache.mina.filter.firewall.BlacklistFilter.block (Showing top 15 results out of 315)

origin: org.apache.mina/mina-core

/**
 * Sets the subnets to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted subnets.
 *
 * @param subnets an array of subnets to be blacklisted.
 */
public void setSubnetBlacklist(Iterable<Subnet> subnets) {
  if (subnets == null) {
    throw new IllegalArgumentException("Subnets must not be null");
  }
  blacklist.clear();
  for (Subnet subnet : subnets) {
    block(subnet);
  }
}
origin: kaazing/gateway

/**
 * Sets the subnets to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted subnets.
 *
 * @param subnets an array of subnets to be blacklisted.
 */
public void setSubnetBlacklist(Iterable<Subnet> subnets) {
  if (subnets == null) {
    throw new NullPointerException("Subnets must not be null");
  }
  blacklist.clear();
  for (Subnet subnet : subnets) {
    block(subnet);
  }
}
origin: org.apache.mina/mina-core

/**
 * Sets the addresses to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted addresses.
 *
 * @param addresses an array of addresses to be blacklisted.
 */
public void setBlacklist(InetAddress[] addresses) {
  if (addresses == null) {
    throw new IllegalArgumentException("addresses");
  }
  blacklist.clear();
  for (int i = 0; i < addresses.length; i++) {
    InetAddress addr = addresses[i];
    block(addr);
  }
}
origin: org.apache.mina/mina-core

/**
 * Sets the subnets to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted subnets.
 *
 * @param subnets an array of subnets to be blacklisted.
 */
public void setSubnetBlacklist(Subnet[] subnets) {
  if (subnets == null) {
    throw new IllegalArgumentException("Subnets must not be null");
  }
  blacklist.clear();
  for (Subnet subnet : subnets) {
    block(subnet);
  }
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Sets the subnets to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted subnets.
 *
 * @param subnets an array of subnets to be blacklisted.
 */
public void setSubnetBlacklist(Iterable<Subnet> subnets) {
  if (subnets == null) {
    throw new IllegalArgumentException("Subnets must not be null");
  }
  blacklist.clear();
  for (Subnet subnet : subnets) {
    block(subnet);
  }
}
origin: kaazing/gateway

/**
 * Sets the subnets to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted subnets.
 *
 * @param subnets an array of subnets to be blacklisted.
 */
public void setSubnetBlacklist(Subnet[] subnets) {
  if (subnets == null) {
    throw new NullPointerException("Subnets must not be null");
  }
  blacklist.clear();
  for (Subnet subnet : subnets) {
    block(subnet);
  }
}

origin: org.apache.mina/mina-core

/**
 * Sets the addresses to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted addresses.
 *
 * @param addresses a collection of InetAddress objects representing the
 *        addresses to be blacklisted.
 * @throws IllegalArgumentException if the specified collections contains
 *         non-{@link InetAddress} objects.
 */
public void setBlacklist(Iterable<InetAddress> addresses) {
  if (addresses == null) {
    throw new IllegalArgumentException("addresses");
  }
  blacklist.clear();
  for (InetAddress address : addresses) {
    block(address);
  }
}
origin: kaazing/gateway

/**
 * Sets the addresses to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted addresses.
 *
 * @param addresses an array of addresses to be blacklisted.
 */
public void setBlacklist(InetAddress[] addresses) {
  if (addresses == null) {
    throw new NullPointerException("addresses");
  }
  blacklist.clear();
  for (int i = 0; i < addresses.length; i++) {
    InetAddress addr = addresses[i];
    block(addr);
  }
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Sets the subnets to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted subnets.
 *
 * @param subnets an array of subnets to be blacklisted.
 */
public void setSubnetBlacklist(Subnet[] subnets) {
  if (subnets == null) {
    throw new IllegalArgumentException("Subnets must not be null");
  }
  blacklist.clear();
  for (Subnet subnet : subnets) {
    block(subnet);
  }
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Sets the addresses to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted addresses.
 *
 * @param addresses an array of addresses to be blacklisted.
 */
public void setBlacklist(InetAddress[] addresses) {
  if (addresses == null) {
    throw new IllegalArgumentException("addresses");
  }
  blacklist.clear();
  for (int i = 0; i < addresses.length; i++) {
    InetAddress addr = addresses[i];
    block(addr);
  }
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Sets the addresses to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted addresses.
 *
 * @param addresses a collection of InetAddress objects representing the
 *        addresses to be blacklisted.
 * @throws IllegalArgumentException if the specified collections contains
 *         non-{@link InetAddress} objects.
 */
public void setBlacklist(Iterable<InetAddress> addresses) {
  if (addresses == null) {
    throw new IllegalArgumentException("addresses");
  }
  blacklist.clear();
  for (InetAddress address : addresses) {
    block(address);
  }
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Blocks the specified endpoint.
 * 
 * @param address The address to block
 */
public void block(InetAddress address) {
  if (address == null) {
    throw new IllegalArgumentException("Adress to block can not be null");
  }
  block(new Subnet(address, 32));
}
origin: kaazing/gateway

/**
 * Sets the addresses to be blacklisted.
 *
 * NOTE: this call will remove any previously blacklisted addresses.
 *
 * @param addresses a collection of InetAddress objects representing the
 *        addresses to be blacklisted.
 * @throws IllegalArgumentException if the specified collections contains
 *         non-{@link InetAddress} objects.
 */
public void setBlacklist(Iterable<InetAddress> addresses) {
  if (addresses == null) {
    throw new NullPointerException("addresses");
  }
  blacklist.clear();
  
  for( InetAddress address : addresses ){
    block(address);
  }
}
origin: org.apache.mina/mina-core

/**
 * Blocks the specified endpoint.
 * 
 * @param address The address to block
 */
public void block(InetAddress address) {
  if (address == null) {
    throw new IllegalArgumentException("Adress to block can not be null");
  }
  block(new Subnet(address, 32));
}
origin: kaazing/gateway

/**
 * Blocks the specified endpoint.
 */
public void block(InetAddress address) {
  if (address == null) {
    throw new NullPointerException("Adress to block can not be null");
  }
  block(new Subnet(address, 32));
}
org.apache.mina.filter.firewallBlacklistFilterblock

Javadoc

Blocks the specified endpoint.

Popular methods of BlacklistFilter

  • blockSession
  • isBlocked
  • unblock
    Unblocks the specified subnet.
  • <init>
  • setBlacklist
    Sets the addresses to be blacklisted. NOTE: this call will remove any previously blacklisted address
  • setSubnetBlacklist
    Sets the subnets to be blacklisted. NOTE: this call will remove any previously blacklisted subnets.

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • setScale (BigDecimal)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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