Skip to content

class Athena::Security::Bundle::FirewallContext
inherits Reference #

Holds the listeners and the exception listener of a firewall configured via the ASEC::Bundle.

Constructors#

.new(listeners : Array(ASEC::Firewall::ListenerInterface), exception_listener : ASEC::Firewall::ExceptionListener | Nil)#

View source

Methods#

#exception_listener : ASEC::Firewall::ExceptionListener | ::Nil#

Returns the exception listener of the firewall, or nil if security is disabled on it.

View source

#listeners : Array(ASEC::Firewall::ListenerInterface)#

Returns the listeners of the firewall, in order of their ASEC::Firewall::ListenerInterface#priority.

View source