Changes for page Development-UrlCreation

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

From version 28.1
edited by Andrew Lindesay
on 2008/07/05 01:13
Change comment: There is no comment for this version
To version 32.1
edited by Pascal Robert
on 2010/09/12 00:56
Change comment: Migrated to Confluence 5.3

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -WebApplictions-Development-UrlCreation
1 +Development-UrlCreation
Parent
... ... @@ -1,0 +1,1 @@
1 +Development Architecture
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.apl
1 +XWiki.probert
Content
... ... @@ -1,20 +1,619 @@
1 1  = WOContext =
2 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.
3 +The {{code language="none"}}WOContext{{/code}} 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 4  
5 5  == Example URLs ==
6 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.
7 +The {{code language="none"}}WOContext{{/code}} 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 -=== Development Mode ===
9 +=== A - completeURLWithRequestHandlerKey(..) ===
10 10  
11 -This is the case where the application is being developed in, for example, Eclipse;
11 +{{code}}
12 +completeURLWithRequestHandlerKey(
13 + WOApplication.application().directActionRequestHandlerKey(),
14 + "default",
15 + "a=b",
16 + context().request().isSecure(),
17 + 0);
12 12  
13 -|Method|context().completeURLWithRequestHandlerKey(
19 +{{/code}}
20 +
21 +|=(((
22 +Session
23 +)))|=(((
24 +Deployment
25 +)))|=(((
26 +Secure
27 +)))|=(((
28 +Generated URL
29 +)))
30 +|(((
31 +Y
32 +)))|(((
33 +Dev
34 +)))|(((
35 +N
36 +)))|(((
37 +~{~{
38 +
39 +[[http:~~/~~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b>>url:http://hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
40 +)))
41 +|(((
42 +N
43 +)))|(((
44 +Dev
45 +)))|(((
46 +N
47 +)))|(((
48 +~{~{
49 +
50 +[[http:~~/~~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b>>url:http://hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
51 +)))
52 +|(((
53 +Y
54 +)))|(((
55 +wotaskd
56 +)))|(((
57 +N
58 +)))|(((
59 +~{~{
60 +
61 +[[http:~~/~~/server/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b>>url:http://server/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
62 +)))
63 +|(((
64 +N
65 +)))|(((
66 +wotaskd
67 +)))|(((
68 +N
69 +)))|(((
70 +~{~{
71 +
72 +[[http:~~/~~/server/cgi-bin/WebObjects/UT.woa/wa/default?a=b>>url:http://server/cgi-bin/WebObjects/UT.woa/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
73 +)))
74 +|(((
75 +Y
76 +)))|(((
77 +wotaskd
78 +)))|(((
79 +Y
80 +)))|(((
81 +~{~{
82 +
83 +[[https:~~/~~/server:443/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b>>url:https://server:443/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
84 +)))
85 +|(((
86 +N
87 +)))|(((
88 +wotaskd
89 +)))|(((
90 +Y
91 +)))|(((
92 +~{~{
93 +
94 +[[https:~~/~~/server:443/cgi-bin/WebObjects/UT.woa/wa/default?a=b>>url:https://server:443/cgi-bin/WebObjects/UT.woa/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
95 +)))
96 +
97 +=== B - completeURLWithRequestHandlerKey(..) ===
98 +
99 +{{code}}
100 +completeURLWithRequestHandlerKey(
101 + "123",
14 14   WOApplication.application().directActionRequestHandlerKey(),
15 15   "default",
16 16   "a=b",
17 17   context().request().isSecure(),
18 18   0);
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##
107 +
108 +{{/code}}
109 +
110 +|=(((
111 +Session
112 +)))|=(((
113 +Deployment
114 +)))|=(((
115 +Secure
116 +)))|=(((
117 +Generated URL
118 +)))
119 +|(((
120 +Y
121 +)))|(((
122 +Dev
123 +)))|(((
124 +N
125 +)))|(((
126 +~{~{
127 +
128 +[[http:~~/~~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b>>url:http://hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
129 +)))
130 +|(((
131 +N
132 +)))|(((
133 +Dev
134 +)))|(((
135 +N
136 +)))|(((
137 +~{~{
138 +
139 +[[http:~~/~~/hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b>>url:http://hebe.local:54791/cgi-bin/WebObjects/TestUrlCreation.woa/123/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
140 +)))
141 +|(((
142 +Y
143 +)))|(((
144 +wotaskd
145 +)))|(((
146 +N
147 +)))|(((
148 +~{~{
149 +
150 +[[http:~~/~~/server/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b>>url:http://server/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
151 +)))
152 +|(((
153 +N
154 +)))|(((
155 +wotaskd
156 +)))|(((
157 +N
158 +)))|(((
159 +~{~{
160 +
161 +[[http:~~/~~/server/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b>>url:http://server/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
162 +)))
163 +|(((
164 +Y
165 +)))|(((
166 +wotaskd
167 +)))|(((
168 +Y
169 +)))|(((
170 +~{~{
171 +
172 +[[https:~~/~~/server:443/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b>>url:https://server:443/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
173 +)))
174 +|(((
175 +N
176 +)))|(((
177 +wotaskd
178 +)))|(((
179 +Y
180 +)))|(((
181 +~{~{
182 +
183 +[[https:~~/~~/server:443/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b>>url:https://server:443/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
184 +)))
185 +
186 +=== C - componentActionURL(..) ===
187 +
188 +{{code}}
189 +componentActionURL()
190 +{{/code}}
191 +
192 +|=(((
193 +Session
194 +)))|=(((
195 +Deployment
196 +)))|=(((
197 +Secure
198 +)))|=(((
199 +Generated URL
200 +)))
201 +|(((
202 +Y
203 +)))|(((
204 +Dev
205 +)))|(((
206 +N
207 +)))|(((
208 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/wo/V4N99Ub2Zjavh6V3tvcEQM/0.15{{/code}}
209 +)))
210 +|(((
211 +N
212 +)))|(((
213 +Dev
214 +)))|(((
215 +N
216 +)))|(((
217 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/wo/zBXy58rwSW6aU1mTXVk9uw/0.11{{/code}}
218 +)))
219 +|(((
220 +Y
221 +)))|(((
222 +wotaskd
223 +)))|(((
224 +N
225 +)))|(((
226 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/wo/KMU4YqMibJ4p8XP0biSYDw/0.15{{/code}}
227 +)))
228 +|(((
229 +N
230 +)))|(((
231 +wotaskd
232 +)))|(((
233 +N
234 +)))|(((
235 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/wo/TxKR0vkbs8Z0tGsUfrGlQ0/0.15{{/code}}
236 +)))
237 +|(((
238 +Y
239 +)))|(((
240 +wotaskd
241 +)))|(((
242 +Y
243 +)))|(((
244 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/wo/3bmlqBLMVGzjmuW1wTPTZw/0.15{{/code}}
245 +)))
246 +|(((
247 +N
248 +)))|(((
249 +wotaskd
250 +)))|(((
251 +Y
252 +)))|(((
253 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/wo/z3uRsfT27ZsKLvlcS4Bkx0/0.15{{/code}}
254 +)))
255 +
256 +=== D - componentActionURL(..) ===
257 +
258 +{{code}}
259 +componentActionURL(WOApplication.application().ajaxRequestHandlerKey())
260 +{{/code}}
261 +
262 +|=(((
263 +Session
264 +)))|=(((
265 +Deployment
266 +)))|=(((
267 +Secure
268 +)))|=(((
269 +Generated URL
270 +)))
271 +|(((
272 +Y
273 +)))|(((
274 +Dev
275 +)))|(((
276 +N
277 +)))|(((
278 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/ja/V4N99Ub2Zjavh6V3tvcEQM/0.11{{/code}}
279 +)))
280 +|(((
281 +N
282 +)))|(((
283 +Dev
284 +)))|(((
285 +N
286 +)))|(((
287 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/ja/zBXy58rwSW6aU1mTXVk9uw/0.13{{/code}}
288 +)))
289 +|(((
290 +Y
291 +)))|(((
292 +wotaskd
293 +)))|(((
294 +N
295 +)))|(((
296 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/ja/KMU4YqMibJ4p8XP0biSYDw/0.11{{/code}}
297 +)))
298 +|(((
299 +N
300 +)))|(((
301 +wotaskd
302 +)))|(((
303 +N
304 +)))|(((
305 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/ja/TxKR0vkbs8Z0tGsUfrGlQ0/0.11{{/code}}
306 +)))
307 +|(((
308 +Y
309 +)))|(((
310 +wotaskd
311 +)))|(((
312 +Y
313 +)))|(((
314 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/ja/3bmlqBLMVGzjmuW1wTPTZw/0.11{{/code}}
315 +)))
316 +|(((
317 +N
318 +)))|(((
319 +wotaskd
320 +)))|(((
321 +Y
322 +)))|(((
323 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/ja/z3uRsfT27ZsKLvlcS4Bkx0/0.11{{/code}}
324 +)))
325 +
326 +=== E - componentActionURL(..) ===
327 +
328 +{{code}}
329 +componentActionURL(
330 + WOApplication.application().ajaxRequestHandlerKey(),
331 + context().request().isSecure())
332 +{{/code}}
333 +
334 +|=(((
335 +Session
336 +)))|=(((
337 +Deployment
338 +)))|=(((
339 +Secure
340 +)))|=(((
341 +Generated URL
342 +)))
343 +|(((
344 +Y
345 +)))|(((
346 +Dev
347 +)))|(((
348 +N
349 +)))|(((
350 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/ja/V4N99Ub2Zjavh6V3tvcEQM/0.13{{/code}}
351 +)))
352 +|(((
353 +N
354 +)))|(((
355 +Dev
356 +)))|(((
357 +N
358 +)))|(((
359 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/ja/zBXy58rwSW6aU1mTXVk9uw/0.15{{/code}}
360 +)))
361 +|(((
362 +Y
363 +)))|(((
364 +wotaskd
365 +)))|(((
366 +N
367 +)))|(((
368 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/ja/KMU4YqMibJ4p8XP0biSYDw/0.13{{/code}}
369 +)))
370 +|(((
371 +N
372 +)))|(((
373 +wotaskd
374 +)))|(((
375 +N
376 +)))|(((
377 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/ja/TxKR0vkbs8Z0tGsUfrGlQ0/0.13{{/code}}
378 +)))
379 +|(((
380 +Y
381 +)))|(((
382 +wotaskd
383 +)))|(((
384 +Y
385 +)))|(((
386 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/ja/3bmlqBLMVGzjmuW1wTPTZw/0.13{{/code}}
387 +)))
388 +|(((
389 +N
390 +)))|(((
391 +wotaskd
392 +)))|(((
393 +Y
394 +)))|(((
395 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/ja/z3uRsfT27ZsKLvlcS4Bkx0/0.13{{/code}}
396 +)))
397 +
398 +=== F - directActionURLForActionNamed(..) ===
399 +
400 +{{code}}
401 +directActionURLForActionNamed(
402 + "default",
403 + new NSDictionary<String,Object>(new Object[] {"b"}, new String[] {"a"}),
404 + context().request().isSecure(),
405 + true);
406 +{{/code}}
407 +
408 +|=(((
409 +Session
410 +)))|=(((
411 +Deployment
412 +)))|=(((
413 +Secure
414 +)))|=(((
415 +Generated URL
416 +)))
417 +|(((
418 +Y
419 +)))|(((
420 +Dev
421 +)))|(((
422 +N
423 +)))|(((
424 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b&wosid=V4N99Ub2Zjavh6V3tvcEQM{{/code}}
425 +)))
426 +|(((
427 +N
428 +)))|(((
429 +Dev
430 +)))|(((
431 +N
432 +)))|(((
433 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b{{/code}}
434 +)))
435 +|(((
436 +Y
437 +)))|(((
438 +wotaskd
439 +)))|(((
440 +N
441 +)))|(((
442 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b&wosid=KMU4YqMibJ4p8XP0biSYDw{{/code}}
443 +)))
444 +|(((
445 +N
446 +)))|(((
447 +wotaskd
448 +)))|(((
449 +N
450 +)))|(((
451 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/wa/default?a=b{{/code}}
452 +)))
453 +|(((
454 +Y
455 +)))|(((
456 +wotaskd
457 +)))|(((
458 +Y
459 +)))|(((
460 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b&wosid=3bmlqBLMVGzjmuW1wTPTZw{{/code}}
461 +)))
462 +|(((
463 +N
464 +)))|(((
465 +wotaskd
466 +)))|(((
467 +Y
468 +)))|(((
469 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/wa/default?a=b{{/code}}
470 +)))
471 +
472 +=== G - directActionURLForActionNamed(..) ===
473 +
474 +{{code}}
475 +directActionURLForActionNamed(
476 + "default",
477 + new NSDictionary<String,Object>(new Object[] {"b"}, new String[] {"a"}))
478 +{{/code}}
479 +
480 +|=(((
481 +Session
482 +)))|=(((
483 +Deployment
484 +)))|=(((
485 +Secure
486 +)))|=(((
487 +Generated URL
488 +)))
489 +|(((
490 +Y
491 +)))|(((
492 +Dev
493 +)))|(((
494 +N
495 +)))|(((
496 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b&wosid=V4N99Ub2Zjavh6V3tvcEQM{{/code}}
497 +)))
498 +|(((
499 +N
500 +)))|(((
501 +Dev
502 +)))|(((
503 +N
504 +)))|(((
505 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/wa/default?a=b{{/code}}
506 +)))
507 +|(((
508 +Y
509 +)))|(((
510 +wotaskd
511 +)))|(((
512 +N
513 +)))|(((
514 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b&wosid=KMU4YqMibJ4p8XP0biSYDw{{/code}}
515 +)))
516 +|(((
517 +N
518 +)))|(((
519 +wotaskd
520 +)))|(((
521 +N
522 +)))|(((
523 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/wa/default?a=b{{/code}}
524 +)))
525 +|(((
526 +Y
527 +)))|(((
528 +wotaskd
529 +)))|(((
530 +Y
531 +)))|(((
532 +~{~{
533 +
534 +[[http:~~/~~/server/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b&wosid=3bmlqBLMVGzjmuW1wTPTZw>>url:http://server/cgi-bin/WebObjects/UT.woa/1/wa/default?a=b&wosid=3bmlqBLMVGzjmuW1wTPTZw||rel="nofollow" shape="rect" class="external-link"]]}}
535 +)))
536 +|(((
537 +N
538 +)))|(((
539 +wotaskd
540 +)))|(((
541 +Y
542 +)))|(((
543 +~{~{
544 +
545 +[[http:~~/~~/server/cgi-bin/WebObjects/UT.woa/wa/default?a=b>>url:http://server/cgi-bin/WebObjects/UT.woa/wa/default?a=b||rel="nofollow" shape="rect" class="external-link"]]}}
546 +)))
547 +
548 +=== H - urlWithRequestHandlerKey(..) ===
549 +
550 +{{code}}
551 +urlWithRequestHandlerKey(
552 + WOApplication.application().ajaxRequestHandlerKey(),
553 + "default",
554 + "a=b")
555 +{{/code}}
556 +
557 +|=(((
558 +Session
559 +)))|=(((
560 +Deployment
561 +)))|=(((
562 +Secure
563 +)))|=(((
564 +Generated URL
565 +)))
566 +|(((
567 +Y
568 +)))|(((
569 +Dev
570 +)))|(((
571 +N
572 +)))|(((
573 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/ja/default?a=b{{/code}}
574 +)))
575 +|(((
576 +N
577 +)))|(((
578 +Dev
579 +)))|(((
580 +N
581 +)))|(((
582 +{{code language="none"}}/cgi-bin/WebObjects/TestUrlCreation.woa/ja/default?a=b{{/code}}
583 +)))
584 +|(((
585 +Y
586 +)))|(((
587 +wotaskd
588 +)))|(((
589 +N
590 +)))|(((
591 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/ja/default?a=b{{/code}}
592 +)))
593 +|(((
594 +N
595 +)))|(((
596 +wotaskd
597 +)))|(((
598 +N
599 +)))|(((
600 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/ja/default?a=b{{/code}}
601 +)))
602 +|(((
603 +Y
604 +)))|(((
605 +wotaskd
606 +)))|(((
607 +Y
608 +)))|(((
609 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/1/ja/default?a=b{{/code}}
610 +)))
611 +|(((
612 +N
613 +)))|(((
614 +wotaskd
615 +)))|(((
616 +Y
617 +)))|(((
618 +{{code language="none"}}/cgi-bin/WebObjects/UT.woa/ja/default?a=b{{/code}}
619 +)))