Class CompositeResouceWrapper
- java.lang.Object
- 
- jakarta.faces.application.ViewResource
- 
- jakarta.faces.application.Resource
- 
- org.apache.myfaces.view.facelets.tag.composite.CompositeResouceWrapper
 
 
 
- 
- All Implemented Interfaces:
- FacesWrapper<Resource>,- Externalizable,- Serializable
 
 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$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class jakarta.faces.application.ResourceCOMPONENT_RESOURCE_KEY
 
- 
 - 
Constructor SummaryConstructors Constructor Description CompositeResouceWrapper()CompositeResouceWrapper(Resource delegate)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetInputStream()StringgetRequestPath()Map<String,String>getResponseHeaders()URLgetURL()ResourcegetWrapped()voidreadExternal(ObjectInput in)StringtoString()booleanuserAgentNeedsUpdate(FacesContext context)voidwriteExternal(ObjectOutput out)- 
Methods inherited from class jakarta.faces.application.ResourcegetContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName
 
- 
 
- 
- 
- 
Constructor Detail- 
CompositeResouceWrapperpublic CompositeResouceWrapper() 
 - 
CompositeResouceWrapperpublic CompositeResouceWrapper(Resource delegate) 
 
- 
 - 
Method Detail- 
getInputStreampublic InputStream getInputStream() throws IOException - Specified by:
- getInputStreamin class- Resource
- Throws:
- IOException
 
 - 
getRequestPathpublic String getRequestPath() - Specified by:
- getRequestPathin class- Resource
 
 - 
getResponseHeaderspublic Map<String,String> getResponseHeaders() - Specified by:
- getResponseHeadersin class- Resource
 
 - 
userAgentNeedsUpdatepublic boolean userAgentNeedsUpdate(FacesContext context) - Specified by:
- userAgentNeedsUpdatein class- Resource
 
 - 
getWrappedpublic Resource getWrapped() - Specified by:
- getWrappedin interface- FacesWrapper<Resource>
 
 - 
readExternalpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException - Specified by:
- readExternalin interface- Externalizable
- Throws:
- IOException
- ClassNotFoundException
 
 - 
writeExternalpublic void writeExternal(ObjectOutput out) throws IOException - Specified by:
- writeExternalin interface- Externalizable
- Throws:
- IOException
 
 
- 
 
-