org.richfaces.resource
Class TestResource
java.lang.Object
javax.faces.application.Resource
org.richfaces.resource.AbstractCacheableResource
org.richfaces.resource.AbstractBaseResource
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
| Fields inherited from class javax.faces.application.Resource |
COMPONENT_RESOURCE_KEY |
| 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 |
TestResource
public TestResource()
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.