org.apache.myfaces.view.facelets.tag.composite
Class CompositeResouceWrapper
java.lang.Object
javax.faces.application.Resource
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
CompositeResouceWrapper
public CompositeResouceWrapper()
CompositeResouceWrapper
public CompositeResouceWrapper(Resource delegate)
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.