KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > resource > DefaultURLResource


1 /*
2  * $Id: DefaultURLResource.java,v 1.4 2005/05/13 15:47:07 blueshift Exp $
3  * Copyright 2000,2005 wingS development team.
4  *
5  * This file is part of wingS (http://www.j-wings.org).
6  *
7  * wingS is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2.1
10  * of the License, or (at your option) any later version.
11  *
12  * Please see COPYING for the complete licence.
13  */

14 package org.wings.resource;
15
16 import org.wings.SimpleURL;
17 import org.wings.URLResource;
18
19 /**
20  * Default implementation of an Resource accessible via an HTTP URL.
21  *
22  * @author armin
23  * created at 15.01.2004 17:58:29
24  */

25 public class DefaultURLResource implements URLResource {
26
27     private final SimpleURL url;
28
29     /**
30      * @param urlString The URL to access this ressource.
31      */

32     public DefaultURLResource(String JavaDoc urlString) {
33         url = new SimpleURL(urlString);
34     }
35
36     public SimpleURL getURL() {
37         return url;
38     }
39 }
40
Popular Tags