public static class CommandFilter.Builder extends Object
CommandFilter.
If permit(String...) is never called, then the
permitted rule list will be null. Likewise if
deny(String...) is never called.
| Constructor and Description |
|---|
Builder()
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
CommandFilter |
build()
Create a command filter.
|
CommandFilter.Builder |
deny(String... rules)
Deny the given list of commands.
|
CommandFilter.Builder |
permit(String... rules)
Permit the given list of commands.
|
public CommandFilter.Builder permit(String... rules)
rules - list of commandspublic CommandFilter.Builder deny(String... rules)
rules - list of commandspublic CommandFilter build()
Copyright © 2015. All Rights Reserved.