Class CustomResource

java.lang.Object
javax.faces.application.ViewResource
javax.faces.application.Resource
org.omnifaces.resourcehandler.DynamicResource
de.xima.fc.theme.model.CustomResource

public class CustomResource extends org.omnifaces.resourcehandler.DynamicResource
Resource for custom content
Author:
XIMA MEDIA GmbH
  • Field Summary

    Fields inherited from class javax.faces.application.Resource

    COMPONENT_RESOURCE_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    CustomResource(String content, String resourceName, String libraryName, String contentType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class org.omnifaces.resourcehandler.DynamicResource

    getLastModified, getRequestPath, getResponseHeaders, getURL, setLastModified, userAgentNeedsUpdate

    Methods inherited from class javax.faces.application.Resource

    getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CustomResource

      public CustomResource(String content, String resourceName, String libraryName, String contentType)
  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in class javax.faces.application.Resource
      Throws:
      IOException