Class URLResourceData
- java.lang.Object
-
- org.pentaho.reporting.libraries.resourceloader.loader.AbstractResourceData
-
- org.pentaho.reporting.libraries.resourceloader.loader.URLResourceData
-
- All Implemented Interfaces:
Serializable,ResourceData
public class URLResourceData extends AbstractResourceData
A generic read handler for URL resources.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.pentaho.reporting.libraries.resourceloader.ResourceData
CONTENT_LENGTH, CONTENT_TYPE, FILENAME
-
-
Constructor Summary
Constructors Constructor Description URLResourceData(ResourceKey key)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String key)protected StringgetFilename()protected static longgetFixedCacheDelay()ResourceKeygetKey()InputStreamgetResourceAsStream(ResourceManager caller)protected URLgetUrl()longgetVersion(ResourceManager caller)protected static booleanisFixBrokenWebServiceDateHeader()protected voidsetFilename(String filename)protected voidsetKey(ResourceKey key)protected voidsetUrl(URL url)-
Methods inherited from class org.pentaho.reporting.libraries.resourceloader.loader.AbstractResourceData
getLength, getResource, getResource
-
-
-
-
Constructor Detail
-
URLResourceData
public URLResourceData(ResourceKey key)
-
-
Method Detail
-
getFixedCacheDelay
protected static long getFixedCacheDelay()
-
isFixBrokenWebServiceDateHeader
protected static boolean isFixBrokenWebServiceDateHeader()
-
setUrl
protected void setUrl(URL url)
-
setKey
protected void setKey(ResourceKey key)
-
setFilename
protected void setFilename(String filename)
-
getUrl
protected URL getUrl()
-
getFilename
protected String getFilename()
-
getResourceAsStream
public InputStream getResourceAsStream(ResourceManager caller) throws ResourceLoadingException
- Throws:
ResourceLoadingException
-
getVersion
public long getVersion(ResourceManager caller) throws ResourceLoadingException
- Throws:
ResourceLoadingException
-
getKey
public ResourceKey getKey()
-
-