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 String
PORTAL_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.ResourceHelper
getCustomResourceHelper()
InputStream
getInputStream()
String
getPortalContext()
String
getRequestPath()
PortalRuntime
getRuntime()
-
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:
getInputStream
in 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:
getCustomResourceHelper
in interfaceICustomResourceHelperProviding
-
getRequestPath
public String getRequestPath()
- Overrides:
getRequestPath
in classorg.omnifaces.resourcehandler.DynamicResource
-
-