org.richfaces.resource
Class CompiledCSSResource

java.lang.Object
  extended by javax.faces.application.Resource
      extended by org.richfaces.resource.AbstractCacheableResource
          extended by org.richfaces.resource.AbstractBaseResource
              extended by org.richfaces.resource.CompiledCSSResource
All Implemented Interfaces:
javax.faces.component.StateHolder, org.richfaces.resource.VersionedResource

public class CompiledCSSResource
extends AbstractBaseResource
implements javax.faces.component.StateHolder

Author:
amarkhel Class, that represented dynamic CSS resource.

Field Summary
 
Fields inherited from class org.richfaces.resource.AbstractBaseResource
URL_PROTOCOL
 
Fields inherited from class javax.faces.application.Resource
COMPONENT_RESOURCE_KEY
 
Constructor Summary
CompiledCSSResource(java.lang.String resourcePath)
           
 
Method Summary
 java.lang.String getContentType()
           
static java.lang.ClassLoader getCurrentLoader(java.lang.Object fallbackClass)
           
 java.io.InputStream getInputStream()
           
 java.io.InputStream getResourceInputStream()
           
 java.lang.String getResourceName()
           
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setTransient(boolean newTransientValue)
           
 boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
           
 
Methods inherited from class org.richfaces.resource.AbstractBaseResource
getClassLoader, getContentLength, getEntityTag, getExpires, getLastModified, getRequestPath, getResponseHeaders, getTimeToLive, getURL, getVersion, isCacheable, setCacheable, setVersion
 
Methods inherited from class org.richfaces.resource.AbstractCacheableResource
isMatchesEntityTag, isMatchesEntityTag, isMatchesLastModified, isMatchesLastModified
 
Methods inherited from class javax.faces.application.Resource
getLibraryName, setContentType, setLibraryName, setResourceName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompiledCSSResource

public CompiledCSSResource(java.lang.String resourcePath)
Method Detail

getResourceName

public java.lang.String getResourceName()
Overrides:
getResourceName in class javax.faces.application.Resource

getResourceInputStream

public java.io.InputStream getResourceInputStream()
                                           throws java.io.IOException
Throws:
java.io.IOException

getCurrentLoader

public static java.lang.ClassLoader getCurrentLoader(java.lang.Object fallbackClass)

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in class javax.faces.application.Resource
Throws:
java.io.IOException

getContentType

public java.lang.String getContentType()
Overrides:
getContentType in class javax.faces.application.Resource

userAgentNeedsUpdate

public boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
Overrides:
userAgentNeedsUpdate in class AbstractCacheableResource

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean newTransientValue)
Specified by:
setTransient in interface javax.faces.component.StateHolder


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.