Changes for page Development-UrlCreation
Last modified by Pascal Robert on 2010/09/12 00:56
From version 19.1
edited by Andrew Lindesay
on 2008/07/05 01:10
on 2008/07/05 01:10
Change comment:
There is no comment for this version
To version 21.1
edited by Andrew Lindesay
on 2008/07/05 01:43
on 2008/07/05 01:43
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,19 +1,119 @@ 1 - h1WOContext1 += WOContext = 2 2 3 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 4 5 - h2Example URLs5 +== 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 ##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 - h3DevelopmentMode9 +=== 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|=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 19 +{{/code}} 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## 25 + 26 +=== B - completeURLWithRequestHandlerKey(..) === 27 + 28 +{{code}} 29 +completeURLWithRequestHandlerKey( 30 + "123", 31 + WOApplication.application().directActionRequestHandlerKey(), 32 + "default", 33 + "a=b", 34 + context().request().isSecure(), 35 + 0); 36 + 37 +{{/code}} 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## 43 + 44 +=== C - componentActionURL(..) === 45 + 46 +{{code}} 47 +componentActionURL() 48 +{{/code}} 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( 70 + WOApplication.application().ajaxRequestHandlerKey(), 71 + context().request().isSecure()) 72 +{{/code}} 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( 83 + "default", 84 + new NSDictionary<String,Object>(new Object[] {"b"}, new String[] {"a"}), 85 + context().request().isSecure(), 86 + true); 87 +{{/code}} 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( 98 + "default", 99 + new NSDictionary<String,Object>(new Object[] {"b"}, new String[] {"a"})) 100 +{{/code}} 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( 111 + WOApplication.application().ajaxRequestHandlerKey(), 112 + "default", 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##