01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings.resource;
14:
15: import org.wings.SimpleURL;
16: import org.wings.URLResource;
17:
18: /**
19: * Default implementation of an Resource accessible via an HTTP URL.
20: * Beware that this kind of resource cannot address urls below the servlet path, if the servlet is authorized and the
21: * browser has cookies switched off!
22: *
23: * @author armin
24: * created at 15.01.2004 17:58:29
25: */
26: public class DefaultURLResource implements URLResource {
27:
28: private final SimpleURL url;
29:
30: /**
31: * @param urlString The URL to access this ressource.
32: */
33: public DefaultURLResource(String urlString) {
34: url = new SimpleURL(urlString);
35: }
36:
37: public SimpleURL getURL() {
38: return url;
39: }
40: }
|