Package de.xima.fc.portal
Class DevResource
java.lang.Object
javax.faces.application.ViewResource
javax.faces.application.Resource
javax.faces.application.ResourceWrapper
de.xima.fc.portal.DevResource
- All Implemented Interfaces:
- javax.faces.FacesWrapper<javax.faces.application.Resource>
public class DevResource
extends javax.faces.application.ResourceWrapper
A resource meant only for development. It reads the resource directly from the file system and makes sure it never is
 cached. This is useful especially for transpiled JavaScript or CSS files that change while the server is running.
- Author:
- XIMA MEDIA GmbH
- 
Field SummaryFields inherited from class javax.faces.application.ResourceCOMPONENT_RESOURCE_KEY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanuserAgentNeedsUpdate(javax.faces.context.FacesContext context) Methods inherited from class javax.faces.application.ResourceWrappergetContentType, getLibraryName, getResourceName, getResponseHeaders, getURL, getWrapped, setContentType, setLibraryName, setResourceNameMethods inherited from class javax.faces.application.ResourcetoString
- 
Constructor Details- 
DevResource- Parameters:
- wrapped- Original compressed resource for which a development resource exists.
- devPath- Path to the development resource on the file system.
 
 
- 
- 
Method Details- 
getInputStream- Overrides:
- getInputStreamin class- javax.faces.application.ResourceWrapper
- Throws:
- IOException
 
- 
getRequestPath- Overrides:
- getRequestPathin class- javax.faces.application.ResourceWrapper
 
- 
userAgentNeedsUpdatepublic boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context) - Overrides:
- userAgentNeedsUpdatein class- javax.faces.application.ResourceWrapper
 
 
-