Class AbstractAppPluginRootResource<T extends AppPlugin>

    • Constructor Detail

      • AbstractAppPluginRootResource

        public AbstractAppPluginRootResource​(String pluginName,
                                             AppRuntimeDelegate<T> runtimeDelegate)
    • Method Detail

      • subResource

        protected <S extends AbstractAppPluginResource<T>> S subResource​(S subResource,
                                                                         String engineName)
        Type Parameters:
        T -
        Parameters:
        subResource -
        engineName -
        Returns:
      • getAsset

        @GET
        @Path("/static/{file:.*}")
        public javax.ws.rs.core.Response getAsset​(@PathParam("file")
                                                  String file)
        Provides a plugins asset files via $PLUGIN_ROOT_PATH/static.
        Parameters:
        file -
        Returns:
      • applyResourceOverrides

        protected InputStream applyResourceOverrides​(String file,
                                                     InputStream assetStream)
        Parameters:
        file -
        assetStream -
      • getContentType

        protected String getContentType​(String file)
      • getPluginAssetAsStream

        protected InputStream getPluginAssetAsStream​(AppPlugin plugin,
                                                     String fileName)
        Returns an input stream for a given resource
        Parameters:
        resourceName -
        Returns:
      • getWebResourceAsStream

        protected InputStream getWebResourceAsStream​(String assetDirectory,
                                                     String fileName)