Package de.xima.fc.portal.model
Class PortalResource
- java.lang.Object
-
- javax.faces.application.ViewResource
-
- javax.faces.application.Resource
-
- org.omnifaces.resourcehandler.DynamicResource
-
- de.xima.fc.portal.model.PortalResource
-
- All Implemented Interfaces:
ICustomResourceHelperProviding
public class PortalResource extends org.omnifaces.resourcehandler.DynamicResource implements ICustomResourceHelperProviding
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static StringPORTAL_NAME_PARAM
-
Constructor Summary
Constructors Constructor Description PortalResource(PortalRuntime runtime, String resourceName, String libraryName, String contentType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.faces.application.resource.ResourceHelpergetCustomResourceHelper()InputStreamgetInputStream()StringgetPortalContext()StringgetRequestPath()PortalRuntimegetRuntime()-
Methods inherited from class org.omnifaces.resourcehandler.DynamicResource
getLastModified, getResponseHeaders, getURL, setLastModified, userAgentNeedsUpdate
-
-
-
-
Field Detail
-
PORTAL_NAME_PARAM
public static final String PORTAL_NAME_PARAM
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PortalResource
public PortalResource(PortalRuntime runtime, String resourceName, String libraryName, String contentType)
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin classjavax.faces.application.Resource- Throws:
IOException
-
getRuntime
public PortalRuntime getRuntime()
- Returns:
- The runtime of the portal plugin that provides this resource.
-
getPortalContext
public String getPortalContext()
- Returns:
- the portalContext
-
getCustomResourceHelper
public com.sun.faces.application.resource.ResourceHelper getCustomResourceHelper()
- Specified by:
getCustomResourceHelperin interfaceICustomResourceHelperProviding
-
getRequestPath
public String getRequestPath()
- Overrides:
getRequestPathin classorg.omnifaces.resourcehandler.DynamicResource
-
-