1 15 package org.apache.tapestry.asset; 16 17 import java.net.URL ; 18 import java.util.Locale ; 19 20 import org.apache.hivemind.Resource; 21 import org.apache.hivemind.util.AbstractResource; 22 23 29 public class ExternalResource extends AbstractResource 30 { 31 public ExternalResource(String path, Locale locale) 32 { 33 super(path, locale); 34 } 35 36 protected Resource newResource(String path) 37 { 38 return new ExternalResource(path, getLocale()); 39 } 40 41 public URL getResourceURL() 42 { 43 throw new UnsupportedOperationException ("getResourceURL()"); 44 } 45 46 public Resource getLocalization(Locale locale) 47 { 48 return this; 49 } 50 51 } 52 | Popular Tags |