view release on metacpan or search on metacpan
lib/Apache2/ASP/ASPDOM/Node.pm view on Meta::CPAN
123456789101112131415161718192021222324252627282930313233package
Apache2::ASP::ASPDOM::Node;
use
strict;
#==============================================================================
sub
new
{
my
(
$class
,
%args
) =
@_
;
my
$s
=
bless
{
%args
,
childNodes
=> [ ],
events
=> {
before_appendChild
=> [ ],
after_appendChild
=> [ ],
},
},
$class
;
weaken(
$s
->{parentNode})
if
$s
->{parentNode};
return
$s
;
}
# end new()
#==============================================================================
sub
id {
$_
[0]->{id} }
sub
tagName {
$_
[0]->{tagName} }
#==============================================================================
lib/Apache2/ASP/ASPDOM/Node.pm view on Meta::CPAN
636465666768697071727374757677787980818283
@{
$_
[0]->{childNodes}} or
return
;
@{
$_
[0]->{childNodes}}
}
# end childNodes()
#==============================================================================
sub
parentNode
{
my
$s
=
shift
;
@_
? weaken(
$s
->{parentNode} =
shift
) :
$s
->{parentNode};
}
# end parentNode()
#==============================================================================
sub
appendChild
{
my
(
$s
,
$child
) =
@_
;
# Call "before" handlers?
foreach
( @{
$s
->{events}->{before_appendChild}} )
lib/Apache2/ASP/ASPPage.pm view on Meta::CPAN
2345678910111213141516171819202122package
Apache2::ASP::ASPPage;
use
strict;
use
vars __PACKAGE__->VARS;
use
Data::Dumper;
#==============================================================================
sub
new
{
my
(
$class
,
%args
) =
@_
;
$class
->init_asp_objects(
$class
->context );
lib/Apache2/ASP/ApplicationStateManager.pm view on Meta::CPAN
lib/Apache2/ASP/HTTPContext.pm view on Meta::CPAN
123456789101112131415161718192021package
Apache2::ASP::HTTPContext;
use
strict;
use
Apache2::ASP::Server;
use
HTTP::Headers;
our
$instance
;
our
$ClassName
= __PACKAGE__;
our
%StartedServers
= ( );
#==============================================================================
lib/Apache2/ASP/Mock/ClientSocket.pm view on Meta::CPAN
1234567891011121314151617181920212223242526package
Apache2::ASP::Mock::ClientSocket;
use
strict;
#==============================================================================
sub
new
{
my
(
$class
,
%args
) =
@_
;
my
$s
=
bless
\
%args
,
$class
;
weaken(
$s
->{connection});
return
$s
;
}
# end new()
#==============================================================================
sub
close
{
my
$s
=
shift
;
$s
->{connection}->aborted( 1 );
lib/Apache2/ASP/SessionStateManager.pm view on Meta::CPAN
1234567891011121314151617181920package
Apache2::ASP::SessionStateManager;
use
strict;
#==============================================================================
sub
new
{
my
(
$class
,
%args
) =
@_
;
my
$s
=
bless
{},
$class
;
my
$conn
=
$s
->context->config->data_connections->session;
lib/Apache2/ASP/SessionStateManager.pm view on Meta::CPAN
167168169170171172173174175176177178179180181182183184185186187
UPDATE asp_sessions SET
modified_on = ?
WHERE session_id = ?
$sth
->execute( time2iso(),
$id
);
$sth
->finish();
}
# end if()
undef
(
%$s
);
$s
=
bless
$data
,
ref
(
$s
);
weaken(
$s
);
no
warnings
'uninitialized'
;
my
@keys
=
sort
keys
(
%$s
);
my
$sig
= md5_hex(
join
":"
,
map
{
"$_:$s->{$_}"
}
grep
{
$_
ne
'__signature'
}
@keys
);
lib/Apache2/ASP/Test/UserAgent.pm view on Meta::CPAN
5678910111213141516171819202122232425use
HTTP::Response;
use
HTTP::Request::AsCGI;
use
HTTP::Body;
use
IO::File;
our
$ContextClass
=
'Apache2::ASP::HTTPContext'
;
#==============================================================================
sub
new
{
my
(
$class
,
%args
) =
@_
;
lib/Apache2/ASP/Test/UserAgent.pm view on Meta::CPAN
233234235236237238239240241242243244245246247248249250251252253
}
# end foreach()
if
(
$s
->context->session &&
$s
->context->session->{SessionID} )
{
$s
->add_cookie(
$s
->context->config->data_connections->session->
cookie_name
=>
$s
->context->session->{SessionID}
);
}
# end if()
$s
->context->r->pool->call_cleanup_handlers();
weaken(
$s
->context->{cgi});
return
$response
;
}
# end _setup_response()
#==============================================================================
sub
_setup_cgi
{
my
(
$s
,
$req
) =
@_
;