summaryrefslogtreecommitdiff
path: root/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WOResourceURL.java
blob: 14c1c87168416281185507ce95b92f982a05390c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

package net.wotonomy.web;

import net.wotonomy.foundation.NSData;
import net.wotonomy.foundation.NSDictionary;

public class WOResourceURL extends WODynamicElement {

	public WOResourceURL() {
		super();
	}

	public WOResourceURL(String aName, NSDictionary assocs, WOElement template) {
		super(aName, assocs, template);
	}

	public void appendToResponse(WOResponse r, WOContext c) {
		String fname = stringForProperty("filename", c.component());
		if (fname != null) {
			String fwk = stringForProperty("framework", c.component());
			return;
		}
		NSData data = (NSData) valueForProperty("data", c.component());
		if (data != null) {
			String mime = stringForProperty("mimeType", c.component());
			String key = stringForProperty("key", c.component());
			return;
		}
	}

}