Changes for page Development-UrlCreation

Last modified by Pascal Robert on 2010/09/12 00:56

From version 21.1
edited by Andrew Lindesay
on 2008/07/05 01:43
Change comment: There is no comment for this version
To version 24.1
edited by Andrew Lindesay
on 2008/07/05 01:32
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,8 +6,10 @@
6 6  
7 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. These examples have been produced with WebObjects 5.4.
8 8  
9 -=== A - completeURLWithRequestHandlerKey(..) ===
9 +=== Development Mode ===
10 10  
11 +This is the case where the application is being developed in, for example, Eclipse;
12 +
11 11  {{code}}
12 12  completeURLWithRequestHandlerKey(
13 13   WOApplication.application().directActionRequestHandlerKey(),
... ... @@ -18,13 +18,10 @@
18 18  
19 19  {{/code}}
20 20  
21 -|=Session|=Deployment|=Secure|=Generated URL
22 -|Y|Dev|N|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##
23 -|N|Dev|N|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##
24 -|Y|wotaskd|N|##http:~/~/server/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b##
23 +|=Session|=Deployment|=URL
24 +|Y|Dev|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##
25 +|N|Dev|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##
25 25  
26 -=== B - completeURLWithRequestHandlerKey(..) ===
27 -
28 28  {{code}}
29 29  completeURLWithRequestHandlerKey(
30 30   "123",
... ... @@ -36,84 +36,41 @@
36 36  
37 37  {{/code}}
38 38  
39 -|=Session|=Deployment|=Secure|=Generated URL
40 -|Y|Dev|N|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b##
41 -|N|Dev|N|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b##
42 -|Y|wotaskd|N|##http:~/~/server/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b##
38 +|=Session|=Deployment|=URL
39 +|Y|Dev|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b##
40 +|N|Dev|##http:~/~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b##
43 43  
44 -=== C - componentActionURL(..) ===
42 +|Method|context().componentActionURL()
43 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wo/V4N99Ub2Zjavh6V3tvcEQM/0.15##
44 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wo/zBXy58rwSW6aU1mTXVk9uw/0.11##
45 45  
46 -{{code}}
47 -componentActionURL()
48 -{{/code}}
46 +|Method|componentActionURL(WOApplication.application().ajaxRequestHandlerKey())
47 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/V4N99Ub2Zjavh6V3tvcEQM/0.11##
48 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/zBXy58rwSW6aU1mTXVk9uw/0.13##
49 49  
50 -|=Session|=Deployment|=Secure|=Generated URL
51 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wo/V4N99Ub2Zjavh6V3tvcEQM/0.15##
52 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wo/zBXy58rwSW6aU1mTXVk9uw/0.11##
53 -|Y|wotaskd|N|##/cgi-bin/WebObjects/UT.woa/1/wo/KMU4YqMibJ4p8XP0biSYDw/0.15##
54 -
55 -=== D - componentActionURL(..) ===
56 -
57 -{{code}}
58 -componentActionURL(WOApplication.application().ajaxRequestHandlerKey())
59 -{{/code}}
60 -
61 -|=Session|=Deployment|=Secure|=Generated URL
62 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/V4N99Ub2Zjavh6V3tvcEQM/0.11##
63 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/zBXy58rwSW6aU1mTXVk9uw/0.13##
64 -|Y|wotaskd|N|##/cgi-bin/WebObjects/UT.woa/1/ja/KMU4YqMibJ4p8XP0biSYDw/0.11##
65 -
66 -=== E - componentActionURL(..) ===
67 -
68 -{{code}}
69 -componentActionURL(
50 +|Method|componentActionURL(
70 70   WOApplication.application().ajaxRequestHandlerKey(),
71 71   context().request().isSecure())
72 -{{/code}}
53 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/V4N99Ub2Zjavh6V3tvcEQM/0.13##
54 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/zBXy58rwSW6aU1mTXVk9uw/0.15##
73 73  
74 -|=Session|=Deployment|=Secure|=Generated URL
75 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/V4N99Ub2Zjavh6V3tvcEQM/0.13##
76 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/zBXy58rwSW6aU1mTXVk9uw/0.15##
77 -|Y|wotaskd|N|##/cgi-bin/WebObjects/UT.woa/1/ja/KMU4YqMibJ4p8XP0biSYDw/0.13##
78 -
79 -=== F - directActionURLForActionNamed(..) ===
80 -
81 -{{code}}
82 -directActionURLForActionNamed(
56 +|Method|directActionURLForActionNamed(
83 83   "default",
84 - new NSDictionary<String,Object>(new Object[] {"b"}, new String[] {"a"}),
58 + new NSDictionary<String,Object>(new Object[[]] {"b"}, new String[[]] {"a"}),
85 85   context().request().isSecure(),
86 86   true);
87 -{{/code}}
61 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b&amp;wosid=V4N99Ub2Zjavh6V3tvcEQM##
62 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##
88 88  
89 -|=Session|=Deployment|=Secure|=Generated URL
90 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b&wosid=V4N99Ub2Zjavh6V3tvcEQM##
91 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##
92 -|Y|wotaskd|N|##/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b&wosid=KMU4YqMibJ4p8XP0biSYDw##
93 -
94 -=== G - directActionURLForActionNamed(..) ===
95 -
96 -{{code}}
97 -directActionURLForActionNamed(
64 +|Method|directActionURLForActionNamed(
98 98   "default",
99 - new NSDictionary<String,Object>(new Object[] {"b"}, new String[] {"a"}))
100 -{{/code}}
66 + new NSDictionary<String,Object>(new Object[[]] {"b"}, new String[[]] {"a"}))
67 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b&wosid=V4N99Ub2Zjavh6V3tvcEQM##
68 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##
101 101  
102 -|=Session|=Deployment|=Secure|=Generated URL
103 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b&wosid=V4N99Ub2Zjavh6V3tvcEQM##
104 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b##
105 -|Y|wotaskd|N|##/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b&wosid=KMU4YqMibJ4p8XP0biSYDw##
106 -
107 -=== H - urlWithRequestHandlerKey(..) ===
108 -
109 -{{code}}
110 -urlWithRequestHandlerKey(
70 +|Method|urlWithRequestHandlerKey(
111 111   WOApplication.application().ajaxRequestHandlerKey(),
112 112   "default",
113 113   "a=b")
114 -{{/code}}
115 -
116 -|=Session|=Deployment|=Secure|=Generated URL
117 -|Y|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/default?a=b##
118 -|N|Dev|N|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/default?a=b##
119 -|Y|wotaskd|N|##/cgi-bin/WebObjects/UT.woa/1/ja/default?a=b##
74 +|Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/default?a=b##
75 +|No Session|##/cgi-bin/WebObjects/TestUrlCreation.woa/ja/default?a=b##