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 Object
getAttribute(String key)
protected String
getFilename()
protected static long
getFixedCacheDelay()
ResourceKey
getKey()
InputStream
getResourceAsStream(ResourceManager caller)
protected URL
getUrl()
long
getVersion(ResourceManager caller)
protected static boolean
isFixBrokenWebServiceDateHeader()
protected void
setFilename(String filename)
protected void
setKey(ResourceKey key)
protected void
setUrl(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()
-
-