Skip to main content
summaryrefslogblamecommitdiffstats
blob: 3f6778bad1751739795af9e3c365662e7d9f51b0 (plain) (tree)




















































                                                                                    
/*******************************************************************************
 * Copyright (c) 2001, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.wst.internet.cache.internal;

/**
 * A resource that is specified to be cached. The resource has a URL and an optional
 * license.
 */
public class ToCacheResource 
{
  private String url;
  private String license;
  
  /**
   * Constructor.
   * 
   * @param url The URL of the resource to be cached.
   * @param license The URL of the optional license for this resource.
   */
  public ToCacheResource(String url, String license)
  {
	this.url = url;
	this.license = license;
  }
  
  /**
   * Get the URL of the resource to be cached.
   * 
   * @return The URL of the resource to be cached.
   */
  public String getURL()
  {
	return url;
  }
  
  /**
   * Get the license URL of the resource to be cached.
   * 
   * @return The license URL of the resource to be cached.
   */
  public String getLicense()
  {
	return license;
  }
}

Back to the top