public abstract class DefaultResource extends javax.faces.application.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 |
| Constructor and Description |
|---|
DefaultResource(javax.faces.application.Resource wrapped)
Constructs a new resource wrapping the given resource.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
String |
getLibraryName() |
String |
getResourceName() |
javax.faces.application.Resource |
getWrapped() |
void |
readExternal(ObjectInput input) |
void |
writeExternal(ObjectOutput output) |
getInputStream, getRequestPath, getResponseHeaders, getURL, userAgentNeedsUpdatepublic static final String RES_NOT_FOUND
public DefaultResource(javax.faces.application.Resource wrapped)
wrapped - The resource to be wrapped.public String getResourceName()
getResourceName in class javax.faces.application.Resourcepublic String getLibraryName()
getLibraryName in class javax.faces.application.Resourcepublic String getContentType()
getContentType in class javax.faces.application.Resourcepublic javax.faces.application.Resource getWrapped()
getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.Resource>getWrapped in class javax.faces.application.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.