portal.services.resource
Class LazyResource
java.lang.Object
portal.services.resource.LazyResource
- All Implemented Interfaces:
- IResource, java.io.Serializable
- Direct Known Subclasses:
- IconResource
- public class LazyResource
- extends java.lang.Object
- implements IResource
- See Also:
- Serialized Form
Constructor Summary |
LazyResource(java.lang.String resourcePath)
|
LazyResource(java.lang.String resourcePath,
java.lang.String contentType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LazyResource
public LazyResource(java.lang.String resourcePath)
LazyResource
public LazyResource(java.lang.String resourcePath,
java.lang.String contentType)
isStatic
public final boolean isStatic()
throws ResourceServiceException
- Specified by:
isStatic
in interface IResource
- Throws:
ResourceServiceException
getContentType
public final java.lang.String getContentType()
throws ResourceServiceException
- Specified by:
getContentType
in interface IResource
- Throws:
ResourceServiceException
getSize
public final long getSize()
throws ResourceServiceException
- Specified by:
getSize
in interface IResource
- Throws:
ResourceServiceException
getResourceAsStream
public final java.io.InputStream getResourceAsStream()
throws ResourceServiceException
- Specified by:
getResourceAsStream
in interface IResource
- Throws:
ResourceServiceException
loadResource
protected IResource loadResource(java.lang.String resourcePath)
throws ResourceServiceException
- Throws:
ResourceServiceException
loadResource
protected IResource loadResource(java.lang.String resourcePath,
java.lang.String contentType)
throws ResourceServiceException
- Throws:
ResourceServiceException