arjen stolk | 5 Jan 2004 12:19

decoupling http part from transformation part

hello folks,

i feel the need to decouple the handling of a http request in maverick and
the actual execution of a command (or creation of html as it is)
motivation: i'd like to create static html and write it to disk.

has anyone thoughts/plans about how to do this?

i could just go ahead and refactor some code and then post it...

greetings, arjen stolk

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
jim moore | 5 Jan 2004 14:03

RE: decoupling http part from transformation part

Couple ideas--one, you could just attach a response filter that in addition
to sending everything back to the browser, wrote out a copy to disk. This
would be pretty simple to do but would still require valid requests, etc. 

You could automate running the app with the help of some automated web
runner like nunit asp: http://nunitasp.sourceforge.net/.

Another option would be to create mock request and response objects and pipe
those through maverick. Your objects could do whatever they needed, and
Maverick wouldn't know that it wasn't getting real request/response objects
and would behave as normal. This may be tricky as HttpRequest and
HttpResponse are sealed so they may be difficult to mock. I seem to remember
that someone had written an alternate System.Web.dll that mocked these
objects to ease in unit testing, but I can't remember where I saw that.
Anyone?

--jim

-----Original Message-----
From: mavnet-user-admin <at> lists.sourceforge.net
[mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of arjen stolk
Sent: Monday, January 05, 2004 11:19 AM
To: mavnet-user <at> lists.sourceforge.net
Subject: [Mavnet-user] decoupling http part from transformation part

hello folks,

i feel the need to decouple the handling of a http request in maverick and
the actual execution of a command (or creation of html as it is)
motivation: i'd like to create static html and write it to disk.
(Continue reading)

arjen stolk | 5 Jan 2004 14:39

RE: [useful] RE: decoupling http part from transformation part

hello jim,

maybe mocking is a solution that does the trick without having to rewrite a
bit. i've googled
and found smth that might mock system.web.dll:
http://www.prettyobjects.com/english/Products/POCMock/POCMockWalkthrough2.ht
ml#Mock

other ideas are still welcome.

bye, arjen

-----Original Message-----
From: mavnet-user-admin <at> lists.sourceforge.net
[mailto:mavnet-user-admin <at> lists.sourceforge.net]On Behalf Of jim moore
Sent: Monday, January 05, 2004 2:04 PM
To: mavnet-user <at> lists.sourceforge.net
Subject: [useful] RE: [Mavnet-user] decoupling http part from
transformation part

Couple ideas--one, you could just attach a response filter that in addition
to sending everything back to the browser, wrote out a copy to disk. This
would be pretty simple to do but would still require valid requests, etc.

You could automate running the app with the help of some automated web
runner like nunit asp: http://nunitasp.sourceforge.net/.

Another option would be to create mock request and response objects and pipe
those through maverick. Your objects could do whatever they needed, and
Maverick wouldn't know that it wasn't getting real request/response objects
(Continue reading)

Aaron Clauson | 21 Jan 2004 12:11
Picon
Favicon

Config Commands

Hi,

How do you call the current config and reload
commands?

For example if I set the currentConfig command in the
web.config file how do I set up an aspx page to get
the output?

Thanks,

Aaron

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Aaron Clauson | 26 Jan 2004 11:33
Picon
Favicon

AspxController

Hi,

Couple of queries/points on the AspxController class.

Firstly the reason I couldn't get the currentConfig or
reload commands to work from aspx pages was the
following line in the Render method of the afore
mentioned class:

CommandBase cmd = dispatcher.GetCommand(commandName)
as CommandBase;

Changing it to,

ICommand cmd = dispatcher.GetCommand(commandName) as
ICommand;

allowed the commands to get through. 

Secondly the aspx controller class circumvents the
Maverick config file for selection of the controller. 
I can see why this was done - it prevents the Maverick
config file choosing a different controller to the one
specified in the aspx page - but to me it it also
introduces two disadvantages:

1. Since the pages don't use the Maverick
configuration file for controller selection you also
can't pass parameters to the controllers, at least not
without some additional code somewhere,
(Continue reading)

jim moore | 26 Jan 2004 18:34

RE: AspxController

Hi Aaron,

Glad someone is looking at the AspxController. That was a quick job by me to
just get it working, so it could definitely use some refactoring. The
patches you suggest look fine to me. If you want to submit them as actual
patches (diff's), I'd be glad to apply them.

--jim

-----Original Message-----
From: mavnet-user-admin <at> lists.sourceforge.net
[mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Aaron Clauson
Sent: Monday, January 26, 2004 10:34 AM
To: mavnet-user <at> lists.sourceforge.net
Subject: [Mavnet-user] AspxController

Hi,

Couple of queries/points on the AspxController class.

Firstly the reason I couldn't get the currentConfig or
reload commands to work from aspx pages was the
following line in the Render method of the afore
mentioned class:

CommandBase cmd = dispatcher.GetCommand(commandName)
as CommandBase;

Changing it to,

(Continue reading)


Gmane