Class CompositeResouceWrapper
- java.lang.Object
-
- javax.faces.application.ViewResource
-
- 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$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.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 InputStreamgetInputStream()StringgetRequestPath()Map<String,String>getResponseHeaders()URLgetURL()ResourcegetWrapped()voidreadExternal(ObjectInput in)StringtoString()booleanuserAgentNeedsUpdate(FacesContext context)voidwriteExternal(ObjectOutput out)-
Methods inherited from class javax.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:
getInputStreamin classResource- Throws:
IOException
-
getRequestPath
public String getRequestPath()
- Specified by:
getRequestPathin classResource
-
getResponseHeaders
public Map<String,String> getResponseHeaders()
- Specified by:
getResponseHeadersin classResource
-
userAgentNeedsUpdate
public boolean userAgentNeedsUpdate(FacesContext context)
- Specified by:
userAgentNeedsUpdatein classResource
-
getWrapped
public Resource getWrapped()
- Specified by:
getWrappedin interfaceFacesWrapper<Resource>
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
-