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.Resource
COMPONENT_RESOURCE_KEY
-
-
Constructor Summary
Constructors Constructor Description CompositeResouceWrapper()
CompositeResouceWrapper(Resource delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 jakarta.faces.application.Resource
getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName
-
-
-
-
Constructor Detail
-
CompositeResouceWrapper
public CompositeResouceWrapper()
-
CompositeResouceWrapper
public CompositeResouceWrapper(Resource delegate)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in classResource
- Throws:
IOException
-
getRequestPath
public String getRequestPath()
- Specified by:
getRequestPath
in classResource
-
getResponseHeaders
public Map<String,String> getResponseHeaders()
- Specified by:
getResponseHeaders
in classResource
-
userAgentNeedsUpdate
public boolean userAgentNeedsUpdate(FacesContext context)
- Specified by:
userAgentNeedsUpdate
in classResource
-
getWrapped
public Resource getWrapped()
- Specified by:
getWrapped
in interfaceFacesWrapper<Resource>
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
-