org.apache.myfaces.view.facelets.tag.composite
Class CompositeResouceWrapper

java.lang.Object
  extended by javax.faces.application.Resource
      extended by org.apache.myfaces.view.facelets.tag.composite.CompositeResouceWrapper
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, javax.faces.FacesWrapper<javax.faces.application.Resource>

public final class CompositeResouceWrapper
extends javax.faces.application.Resource
implements javax.faces.FacesWrapper<javax.faces.application.Resource>, java.io.Externalizable

The value inside composite component attribute map with the key Resource.COMPONENT_RESOURCE_KEY should be a Serializable. This wrapper add serialization to Resource instances, because ResourceImpl depends from the ResourceLoader used by it.

Version:
$Revision: 882415 $ $Date: 2009-11-19 23:59:57 -0500 (Thu, 19 Nov 2009) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.faces.application.Resource
COMPONENT_RESOURCE_KEY
 
Constructor Summary
CompositeResouceWrapper()
           
CompositeResouceWrapper(javax.faces.application.Resource _delegate)
           
 
Method Summary
 java.io.InputStream getInputStream()
           
 java.lang.String getRequestPath()
           
 java.util.Map<java.lang.String,java.lang.String> getResponseHeaders()
           
 java.net.URL getURL()
           
 javax.faces.application.Resource getWrapped()
           
 void readExternal(java.io.ObjectInput in)
           
 boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class javax.faces.application.Resource
getContentType, 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

CompositeResouceWrapper

public CompositeResouceWrapper()

CompositeResouceWrapper

public CompositeResouceWrapper(javax.faces.application.Resource _delegate)
Method Detail

getInputStream

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

getRequestPath

public java.lang.String getRequestPath()
Specified by:
getRequestPath in class javax.faces.application.Resource

getResponseHeaders

public java.util.Map<java.lang.String,java.lang.String> getResponseHeaders()
Specified by:
getResponseHeaders in class javax.faces.application.Resource

getURL

public java.net.URL getURL()
Specified by:
getURL in class javax.faces.application.Resource

userAgentNeedsUpdate

public boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
Specified by:
userAgentNeedsUpdate in class javax.faces.application.Resource

getWrapped

public javax.faces.application.Resource getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.Resource>

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.