portal.services.resource.runtime
Class FileResource

java.lang.Object
  extended byportal.services.resource.runtime.FileResource
All Implemented Interfaces:
IResource, java.io.Serializable

public class FileResource
extends java.lang.Object
implements IResource

See Also:
Serialized Form

Constructor Summary
FileResource(FileResourceLoader myResourceLoader, java.lang.String resourcePath, java.lang.String contentType)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.io.InputStream getResourceAsStream()
           
 long getSize()
           
 boolean isStatic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResource

public FileResource(FileResourceLoader myResourceLoader,
                    java.lang.String resourcePath,
                    java.lang.String contentType)
             throws ResourceServiceException
Method Detail

isStatic

public boolean isStatic()
Specified by:
isStatic in interface IResource

getContentType

public java.lang.String getContentType()
                                throws ResourceServiceException
Specified by:
getContentType in interface IResource
Throws:
ResourceServiceException

getSize

public long getSize()
             throws ResourceServiceException
Specified by:
getSize in interface IResource
Throws:
ResourceServiceException

getResourceAsStream

public java.io.InputStream getResourceAsStream()
                                        throws ResourceServiceException
Specified by:
getResourceAsStream in interface IResource
Throws:
ResourceServiceException