Wiki source code of WebApplictions-Development-UrlCreation
Version 19.1 by Andrew Lindesay on 2008/07/05 01:10
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | h1 WOContext | ||
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 | |||
5 | h2 Example URLs | ||
6 | |||
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. | ||
8 | |||
9 | h3 Development Mode | ||
10 | |||
11 | This is the case where the application is being developed in, for example, Eclipse; | ||
12 | |||
13 | |=Method|=Result with Session|=Result with No Session | ||
14 | |context().completeURLWithRequestHandlerKey( | ||
15 | WOApplication.application().directActionRequestHandlerKey(), | ||
16 | "default", | ||
17 | "a=b", | ||
18 | context().request().isSecure(), | ||
19 | 0);|http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b|http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b |