BorderRouter.removePolicyRule()
Method
Declaration
RouterremovePolicyRule
(
java.lang.String fromInterface,
java.lang.String toInterface)
throws ConfigurationException
Purpose
Remove a policy rule from the border router.
Remarks
This method removes a policy rule. As a result, the border router no longer forwards any of the subjects that the rule had specified.
Without explicit configuration, border routers forward _INBOX.>
(all inbox subjects). Whenever you add an interface, rvrd
automatically configures this default policy for every pairing of that interface with every other existing interface. Removing a policy rule explicitly removes this subject, which disables forwarding of inbox messages for the From/To pair.
If no rule exists for the From/To pair—that is, even the default rule has been removed—then this method returns normally (it does not throw an exception).
Parameter |
Description |
fromInterface |
Supply the From-Interface of the rule to remove. |
toInterface |
Supply the To-Interface of the rule to remove. |
See Also
Router.addLocalNetworkInterface()
Router.getLocalNetworkInterfaces()
For the corresponding browser pages and background information, see Border Routing in