Tabnine Logo
BlacklistFilter.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.mina.filter.firewall.BlacklistFilter
constructor

Best Java code snippets using org.apache.mina.filter.firewall.BlacklistFilter.<init> (Showing top 3 results out of 315)

origin: jzyong/game-server

public GateWebSocketUserServer(MinaServerConfig minaServerConfig) {
  super(null);
  this.minaServerConfig=minaServerConfig;
  blacklistFilter=new BlacklistFilter();
  filters.put("Blacklist", blacklistFilter);
  ScriptManager.getInstance().getBaseScriptEntry().executeScripts(IGateServerScript.class, script->script.setIpBlackList(blacklistFilter));
  gateWebSocketUserServerHandler=new GateWebSocketUserServerHandler();
  tcpServer=new TcpServer(minaServerConfig, gateWebSocketUserServerHandler, new WebSocketCodecFactory(), filters);
}
origin: jzyong/game-server

public GateUdpUserServer(MinaServerConfig minaServerConfig) {
  super(null);
  this.minaServerConfig=minaServerConfig;
  blacklistFilter=new BlacklistFilter();
  filters.put("Blacklist", blacklistFilter);
  ScriptManager.getInstance().getBaseScriptEntry().executeScripts(IGateServerScript.class, script->script.setIpBlackList(blacklistFilter));
  udpServer=new UdpServer(minaServerConfig, new GateUdpUserServerHandler(this),new ClientProtocolCodecFactory(),filters);
}
origin: miltonio/milton2

acceptor.getFilterChain().addLast("ipFilter", new BlacklistFilter());
updateBlacklistFilter();
org.apache.mina.filter.firewallBlacklistFilter<init>

Popular methods of BlacklistFilter

  • block
    Blocks the specified subnet.
  • blockSession
  • isBlocked
  • unblock
    Unblocks the specified subnet.
  • 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

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for Android Studio
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