org.apache.myfaces.trinidad.resource
Class StringContentResourceLoader

java.lang.Object
  extended by org.apache.myfaces.trinidad.resource.ResourceLoader
      extended by org.apache.myfaces.trinidad.resource.DynamicResourceLoader
          extended by org.apache.myfaces.trinidad.resource.StringContentResourceLoader

public abstract class StringContentResourceLoader
extends DynamicResourceLoader


Constructor Summary
StringContentResourceLoader(String path)
           
StringContentResourceLoader(String path, ResourceLoader parent)
           
 
Method Summary
protected  String getContentType(String path)
           
protected abstract  String getString(String path)
           
protected  URL getURL(String path)
          Returns a URL to this resource.
 
Methods inherited from class org.apache.myfaces.trinidad.resource.DynamicResourceLoader
findResource
 
Methods inherited from class org.apache.myfaces.trinidad.resource.ResourceLoader
getContentType, getContentType, getNullResourceLoader, getParent, getResource, isCachable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringContentResourceLoader

public StringContentResourceLoader(String path)

StringContentResourceLoader

public StringContentResourceLoader(String path,
                                   ResourceLoader parent)
Method Detail

getContentType

protected String getContentType(String path)

getString

protected abstract String getString(String path)
                             throws IOException
Throws:
IOException

getURL

protected URL getURL(String path)
              throws IOException
Description copied from class: DynamicResourceLoader
Returns a URL to this resource. This URL should have a valid connection.'

Specified by:
getURL in class DynamicResourceLoader
Parameters:
path - the path of the findResourceCall
Returns:
a url for this Resource
Throws:
IOException - when something bad happens


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.