org.wings.resource.DefaultURLResource Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2000,2005 wingS development team.
*
* This file is part of wingS (http://wingsframework.org).
*
* wingS is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
*
* Please see COPYING for the complete licence.
*/
package org.wings.resource;
import org.wings.SimpleURL;
import org.wings.URLResource;
/**
* Default implementation of an Resource accessible via an HTTP URL.
* Beware that this kind of resource cannot address urls below the servlet path, if the servlet is authorized and the
* browser has cookies switched off!
*
* @author armin
* created at 15.01.2004 17:58:29
*/
public class DefaultURLResource implements URLResource {
private final SimpleURL url;
/**
* @param urlString The URL to access this ressource.
*/
public DefaultURLResource(String urlString) {
url = new SimpleURL(urlString);
}
@Override
public SimpleURL getURL() {
return url;
}
}