public abstract class DefaultResource extends ResourceWrapper implements Externalizable
Resource implementation, fixing broken ResourceWrapper and implementing
Externalizable to avoid JSF state saving trouble.| Modifier and Type | Field and Description |
|---|---|
static String |
RES_NOT_FOUND |
COMPONENT_RESOURCE_KEY| Constructor and Description |
|---|
DefaultResource(Resource wrapped)
Constructs a new resource wrapping the given resource.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
String |
getLibraryName() |
String |
getResourceName() |
Resource |
getWrapped() |
void |
readExternal(ObjectInput input) |
void |
writeExternal(ObjectOutput output) |
getInputStream, getRequestPath, getResponseHeaders, getURL, setContentType, setLibraryName, setResourceName, userAgentNeedsUpdatepublic static final String RES_NOT_FOUND
public DefaultResource(Resource wrapped)
wrapped - The resource to be wrapped.public String getResourceName()
getResourceName in class ResourceWrapperpublic String getLibraryName()
getLibraryName in class ResourceWrapperpublic String getContentType()
getContentType in class ResourceWrapperpublic Resource getWrapped()
getWrapped in interface FacesWrapper<Resource>getWrapped in class ResourceWrapperpublic void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput output) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2012–2014 OmniFaces. All rights reserved.