1 |
|
|
2 |
|
package net.wotonomy.web; |
3 |
|
|
4 |
|
import net.wotonomy.foundation.NSData; |
5 |
|
import net.wotonomy.foundation.NSDictionary; |
6 |
|
|
7 |
|
public class WOResourceURL extends WODynamicElement { |
8 |
|
|
9 |
|
public WOResourceURL() { |
10 |
0 |
super(); |
11 |
0 |
} |
12 |
|
|
13 |
|
public WOResourceURL(String aName, NSDictionary assocs, WOElement template) { |
14 |
0 |
super(aName, assocs, template); |
15 |
0 |
} |
16 |
|
|
17 |
|
public void appendToResponse(WOResponse r, WOContext c) { |
18 |
0 |
String fname = stringForProperty("filename", c.component()); |
19 |
0 |
if (fname != null) { |
20 |
0 |
String fwk = stringForProperty("framework", c.component()); |
21 |
0 |
return; |
22 |
|
} |
23 |
0 |
NSData data = (NSData)valueForProperty("data", c.component()); |
24 |
0 |
if (data != null) { |
25 |
0 |
String mime = stringForProperty("mimeType", c.component()); |
26 |
0 |
String key = stringForProperty("key", c.component()); |
27 |
0 |
return; |
28 |
|
} |
29 |
0 |
} |
30 |
|
|
31 |
|
} |