portal.services.resource
Class LazyResource

java.lang.Object
  extended byportal.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)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.io.InputStream getResourceAsStream()
           
 long getSize()
           
 boolean isStatic()
           
protected  IResource loadResource(java.lang.String resourcePath)
           
protected  IResource loadResource(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
 

Constructor Detail

LazyResource

public LazyResource(java.lang.String resourcePath)

LazyResource

public LazyResource(java.lang.String resourcePath,
                    java.lang.String contentType)
Method Detail

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