View Javadoc

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          super();
11      }
12  
13      public WOResourceURL(String aName, NSDictionary assocs, WOElement template) {
14          super(aName, assocs, template);
15      }
16  
17      public void appendToResponse(WOResponse r, WOContext c) {
18          String fname = stringForProperty("filename", c.component());
19          if (fname != null) {
20              String fwk = stringForProperty("framework", c.component());
21              return;
22          }
23          NSData data = (NSData)valueForProperty("data", c.component());
24          if (data != null) {
25              String mime = stringForProperty("mimeType", c.component());
26              String key = stringForProperty("key", c.component());
27              return;
28          }
29      }
30  
31  }