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:
Externalizable, Serializable, FacesWrapper<Resource>

public final class CompositeResouceWrapper
extends Resource
implements FacesWrapper<Resource>, 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: 1345961 $ $Date: 2012-06-04 08:35:37 -0500 (Mon, 04 Jun 2012) $
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(Resource delegate)
           
 
Method Summary
 InputStream getInputStream()
           
 String getRequestPath()
           
 Map<String,String> getResponseHeaders()
           
 URL getURL()
           
 Resource getWrapped()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 boolean userAgentNeedsUpdate(FacesContext context)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class javax.faces.application.Resource
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName
 
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(Resource delegate)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in class Resource
Throws:
IOException

getRequestPath

public String getRequestPath()
Specified by:
getRequestPath in class Resource

getResponseHeaders

public Map<String,String> getResponseHeaders()
Specified by:
getResponseHeaders in class Resource

getURL

public URL getURL()
Specified by:
getURL in class Resource

userAgentNeedsUpdate

public boolean userAgentNeedsUpdate(FacesContext context)
Specified by:
userAgentNeedsUpdate in class Resource

getWrapped

public Resource getWrapped()
Specified by:
getWrapped in interface FacesWrapper<Resource>

readExternal

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

writeExternal

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

toString

public String toString()
Overrides:
toString in class Resource


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