org.richfaces.resource
Class TestResource

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.TestResource
All Implemented Interfaces:
javax.faces.component.StateHolder, org.richfaces.resource.VersionedResource

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


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
TestResource()
           
 
Method Summary
protected  int getContentLength(javax.faces.context.FacesContext context)
           
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getVersion()
           
 boolean isTransient()
           
protected  void readState(java.io.ByteArrayInputStream bais)
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setTransient(boolean newTransientValue)
           
protected  void writeState(java.io.ByteArrayOutputStream baos)
           
 
Methods inherited from class org.richfaces.resource.AbstractBaseResource
getEntityTag, getExpires, getLastModified, getRequestPath, getResponseHeaders, getTimeToLive, getURL, isCacheable, setCacheable, setVersion
 
Methods inherited from class org.richfaces.resource.AbstractCacheableResource
matchesEntityTag, matchesLastModified, userAgentNeedsUpdate
 
Methods inherited from class javax.faces.application.Resource
getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestResource

public TestResource()
Method Detail

getContentType

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

getContentLength

protected int getContentLength(javax.faces.context.FacesContext context)
Overrides:
getContentLength in class AbstractBaseResource
Returns:
Returns the contentLength.

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in class AbstractBaseResource

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface org.richfaces.resource.VersionedResource
Overrides:
getVersion in class AbstractBaseResource

writeState

protected void writeState(java.io.ByteArrayOutputStream baos)

readState

protected void readState(java.io.ByteArrayInputStream bais)

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState 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

isTransient

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

setTransient

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


Copyright © 2009. All Rights Reserved.