Tabnine Logo
BlacklistFilter.setBlacklist
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: miltonio/milton2

private void updateBlacklistFilter() {
  if (acceptor != null) {
    BlacklistFilter filter = (BlacklistFilter) acceptor
        .getFilterChain().get("ipFilter");
    if (filter != null) {
      if (getBlockedAddresses() != null) {
        filter.setBlacklist(getBlockedAddresses());
      } else if (getBlockedSubnets() != null) {
        filter.setSubnetBlacklist(getBlockedSubnets());
      } else {
        // an empty list clears the blocked addresses
        filter.setSubnetBlacklist(new ArrayList<Subnet>());
      }
    }
  }
}
org.apache.mina.filter.firewallBlacklistFiltersetBlacklist

Javadoc

Sets the addresses to be blacklisted. NOTE: this call will remove any previously blacklisted addresses.

Popular methods of BlacklistFilter

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

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Best IntelliJ plugins
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