public class RemappedResource extends jakarta.faces.application.ResourceWrapper implements Externalizable
Resource
implementation remaps the given resource to the given request path.Constructor and Description |
---|
RemappedResource()
Do not use this constructor.
|
RemappedResource(jakarta.faces.application.Resource resource,
String requestPath)
Constructs a new resource which remaps the given wrapped resource to the given request path.
|
RemappedResource(String resourceName,
String libraryName,
String requestPath)
Constructs a new resource which remaps the given requested resource and library name to the given request path.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
String |
getContentType() |
InputStream |
getInputStream() |
String |
getLibraryName() |
String |
getRequestPath() |
String |
getResourceName() |
Map<String,String> |
getResponseHeaders() |
URL |
getURL() |
jakarta.faces.application.Resource |
getWrapped() |
int |
hashCode() |
void |
readExternal(ObjectInput input) |
boolean |
userAgentNeedsUpdate(jakarta.faces.context.FacesContext context) |
void |
writeExternal(ObjectOutput output) |
public RemappedResource()
Externalizable
.public RemappedResource(jakarta.faces.application.Resource resource, String requestPath)
resource
- The resource to be remapped.requestPath
- The remapped request path.public RemappedResource(String resourceName, String libraryName, String requestPath)
resourceName
- The requested resource name.libraryName
- The requested library name.requestPath
- The remapped request path.public jakarta.faces.application.Resource getWrapped()
getWrapped
in interface jakarta.faces.FacesWrapper<jakarta.faces.application.Resource>
getWrapped
in class jakarta.faces.application.ResourceWrapper
public String getResourceName()
getResourceName
in class jakarta.faces.application.ResourceWrapper
public String getLibraryName()
getLibraryName
in class jakarta.faces.application.ResourceWrapper
public String getContentType()
getContentType
in class jakarta.faces.application.ResourceWrapper
public String getRequestPath()
getRequestPath
in class jakarta.faces.application.ResourceWrapper
public InputStream getInputStream() throws IOException
getInputStream
in class jakarta.faces.application.ResourceWrapper
IOException
public Map<String,String> getResponseHeaders()
getResponseHeaders
in class jakarta.faces.application.ResourceWrapper
public URL getURL()
getURL
in class jakarta.faces.application.ResourceWrapper
public boolean userAgentNeedsUpdate(jakarta.faces.context.FacesContext context)
userAgentNeedsUpdate
in class jakarta.faces.application.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
Copyright © 2012–2020 OmniFaces. All rights reserved.