public class UnmappedResource extends ResourceWrapper implements Externalizable
Resource
implementation is extracted from UnmappedResourceHandler
in order to overcome
state saving issues.COMPONENT_RESOURCE_KEY
Constructor and Description |
---|
UnmappedResource(Resource wrapped)
Constructs a new unmapped resource wrapping the given resource.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
String |
getLibraryName() |
String |
getRequestPath()
Obtain the request path of the wrapped resource.
|
String |
getResourceName() |
Resource |
getWrapped() |
void |
readExternal(ObjectInput input) |
void |
writeExternal(ObjectOutput output) |
getInputStream, getResponseHeaders, getURL, userAgentNeedsUpdate
setContentType, setLibraryName, setResourceName, toString
public UnmappedResource(Resource wrapped)
public String getRequestPath()
getRequestPath
in class ResourceWrapper
public String getResourceName()
getResourceName
in class Resource
public String getLibraryName()
getLibraryName
in class Resource
public String getContentType()
getContentType
in class Resource
public Resource getWrapped()
getWrapped
in interface FacesWrapper<Resource>
getWrapped
in class ResourceWrapper
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
IOException