portal.services.resource.runtime
Class ClasspathResource

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

public class ClasspathResource
extends java.lang.Object
implements IResource

See Also:
Serialized Form

Constructor Summary
ClasspathResource(ClasspathResourceLoader 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

ClasspathResource

public ClasspathResource(ClasspathResourceLoader myResourceLoader,
                         java.lang.String resourcePath,
                         java.lang.String contentType)
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