Package fiftyone.pipeline.web
Class StartupHelpers
- java.lang.Object
-
- fiftyone.pipeline.web.StartupHelpers
-
public class StartupHelpers extends Object
Static methods used on server startup to configure and build the Pipeline and services needed.
-
-
Constructor Summary
Constructors Constructor Description StartupHelpers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static fiftyone.pipeline.core.flowelements.PipelinebuildFromConfiguration(fiftyone.pipeline.core.flowelements.PipelineBuilder builder, fiftyone.pipeline.core.configuration.PipelineOptions options, boolean clientSideEvidenceEnabled)Configure the extra web elements required and build the Pipeline using thePipelineBuilder.buildFromConfiguration(PipelineOptions)method.static fiftyone.pipeline.core.flowelements.PipelinebuildFromConfiguration(fiftyone.pipeline.core.flowelements.PipelineBuilder builder, fiftyone.pipeline.core.configuration.PipelineOptions options, boolean clientSideEvidenceEnabled, String contextRoot)Configure the extra web elements required and build the Pipeline using thePipelineBuilder.buildFromConfiguration(PipelineOptions)method.
-
-
-
Method Detail
-
buildFromConfiguration
public static fiftyone.pipeline.core.flowelements.Pipeline buildFromConfiguration(fiftyone.pipeline.core.flowelements.PipelineBuilder builder, fiftyone.pipeline.core.configuration.PipelineOptions options, boolean clientSideEvidenceEnabled) throws ExceptionConfigure the extra web elements required and build the Pipeline using thePipelineBuilder.buildFromConfiguration(PipelineOptions)method.- Parameters:
builder- to build the Pipelineoptions- to build the Pipeline withclientSideEvidenceEnabled- true if client-side evidence is enabled in the configuration. This will add JSON and JavaScript elements to the Pipeline- Returns:
- new
Pipelineinstance - Throws:
Exception- if there was an error building the Pipeline
-
buildFromConfiguration
public static fiftyone.pipeline.core.flowelements.Pipeline buildFromConfiguration(fiftyone.pipeline.core.flowelements.PipelineBuilder builder, fiftyone.pipeline.core.configuration.PipelineOptions options, boolean clientSideEvidenceEnabled, String contextRoot) throws ExceptionConfigure the extra web elements required and build the Pipeline using thePipelineBuilder.buildFromConfiguration(PipelineOptions)method.- Parameters:
builder- to build the Pipelineoptions- to build the Pipeline withclientSideEvidenceEnabled- true if client-side evidence is enabled in the configuration. This will add JSON and JavaScript elements to the PipelinecontextRoot- The context-root setting from the web.xml. This is needed in order to create the correct callback URL for the JavascriptBuilder.- Returns:
- new
Pipelineinstance - Throws:
Exception- if there was an error building the Pipeline
-
-