Firewall-Config-Content

 view release on metacpan or  search on metacpan

lib/Firewall/Config/Content/Role.pm  view on Meta::CPAN

has fwId => ( is => 'ro', isa => 'Int', required => 1, );

has fwName => ( is => 'ro', isa => 'Str', required => 1, );

has fwType => ( is => 'ro', isa => 'Str', required => 1, );

has confSign => ( is => 'ro', isa => 'Str', required => 1, );

has timestamp => ( is => 'ro', isa => 'Str', required => 1, );

has lineParsedFlags => ( is => 'ro', isa => 'ArrayRef[Int]', builder => '_buildLineParsedFlags', );

#------------------------------------------------------------------------------
# Content 子类必须实现的方法
#------------------------------------------------------------------------------
requires 'config';
requires 'confContent';
requires 'cursor';

requires 'goToHead';
requires 'nextLine';

lib/Firewall/Config/Content/Static.pm  view on Meta::CPAN

#------------------------------------------------------------------------------
use Moose;
use Encode;
use Digest::MD5;
use Firewall::Utils::Date;
use namespace::autoclean;

#------------------------------------------------------------------------------
# 定义 Content::Static 通用属性
#------------------------------------------------------------------------------
has config => ( is => 'ro', isa => 'ArrayRef[Str]', required => 1, );

has confContent => ( is => 'ro', isa => 'Str', lazy => 1, builder => '_buildConfContent', );

has cursor => ( is => 'ro', isa => 'Int', default => 0, );

#------------------------------------------------------------------------------
# 引用 Firewall::Config::Content::Role 角色属性和方法约束
#------------------------------------------------------------------------------
with 'Firewall::Config::Content::Role';



( run in 0.835 second using v1.01-cache-2.11-cpan-5f2e87ce722 )