Version 28.1 by Andrew Lindesay on 2008/07/05 01:13

Hide last authors
Andrew Lindesay 20.1 1 = WOContext =
Andrew Lindesay 3.1 2
3 The ##WOContext## object is used to shepherd a request through the application and then back out to the user. It is also responsible for creation of URL's within the application server. So as the the response is being generated, the application will ask the context to generate URLs back into itself.
4
Andrew Lindesay 20.1 5 == Example URLs ==
Andrew Lindesay 3.1 6
Andrew Lindesay 27.1 7 The ##WOContext## has a number of methods on itself to generate URLs back into the application server. Here the author has tested the generation of those URLs so it can be seen what is created by each method under different usages.
Andrew Lindesay 3.1 8
Andrew Lindesay 24.1 9 === Development Mode ===
10
11 This is the case where the application is being developed in, for example, Eclipse;
12
Andrew Lindesay 28.1 13 |Method|context().completeURLWithRequestHandlerKey(
Andrew Lindesay 20.1 14 WOApplication.application().directActionRequestHandlerKey(),
15 "default",
16 "a=b",
17 context().request().isSecure(),
18 0);
Andrew Lindesay 26.1 19 |Session|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##
20 |No Session|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##