Class JavaScriptBuilderElement
- java.lang.Object
-
- fiftyone.pipeline.core.flowelements.FlowElementBase<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>
-
- fiftyone.pipeline.javascriptbuilder.flowelements.JavaScriptBuilderElement
-
- All Implemented Interfaces:
fiftyone.pipeline.core.flowelements.FlowElement<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>,AutoCloseable
public class JavaScriptBuilderElement extends fiftyone.pipeline.core.flowelements.FlowElementBase<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>
JavaScript Builder Element generates a JavaScript include to be run on the client device.- See Also:
- Specification
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fiftyone.pipeline.core.flowelements.FlowElementBase
fiftyone.pipeline.core.flowelements.FlowElementBase.DataFactoryInternal<T extends fiftyone.pipeline.core.data.ElementData>, fiftyone.pipeline.core.flowelements.FlowElementBase.DataFactorySimple<T extends fiftyone.pipeline.core.data.ElementData>
-
-
Constructor Summary
Constructors Constructor Description JavaScriptBuilderElement(org.slf4j.Logger logger, fiftyone.pipeline.core.data.factories.ElementDataFactory<JavaScriptBuilderData> elementDataFactory, String endpoint, String objName, boolean enableCookies, String host, String protocol)Default constructor.JavaScriptBuilderElement(org.slf4j.Logger logger, fiftyone.pipeline.core.data.factories.ElementDataFactory<JavaScriptBuilderData> elementDataFactory, String endpoint, String objName, boolean enableCookies, String host, String protocol, String contextRoot)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetElementDataKey()fiftyone.pipeline.core.data.EvidenceKeyFiltergetEvidenceKeyFilter()List<fiftyone.pipeline.core.data.ElementPropertyMetaData>getProperties()protected voidmanagedResourcesCleanup()protected voidprocessInternal(fiftyone.pipeline.core.data.FlowData data)protected voidunmanagedResourcesCleanup()
-
-
-
Constructor Detail
-
JavaScriptBuilderElement
public JavaScriptBuilderElement(org.slf4j.Logger logger, fiftyone.pipeline.core.data.factories.ElementDataFactory<JavaScriptBuilderData> elementDataFactory, String endpoint, String objName, boolean enableCookies, String host, String protocol)Default constructor.- Parameters:
logger- The logger.elementDataFactory- The element data factory.endpoint- Set the endpoint which will be queried on the host. e.g /api/v4/jsonobjName- The default name of the object instantiated by the client JavaScript.enableCookies- Set whether the client JavaScript stored results of client side processing in cookies.host- The host that the client JavaScript should query for updates. If null or blank then the host from the request will be usedprotocol- The protocol (HTTP or HTTPS) that the client JavaScript will use when querying for updates. If null or blank then the protocol from the request will be used
-
JavaScriptBuilderElement
public JavaScriptBuilderElement(org.slf4j.Logger logger, fiftyone.pipeline.core.data.factories.ElementDataFactory<JavaScriptBuilderData> elementDataFactory, String endpoint, String objName, boolean enableCookies, String host, String protocol, String contextRoot)Default constructor.- Parameters:
logger- The logger.elementDataFactory- The element data factory.endpoint- Set the endpoint which will be queried on the host. e.g /api/v4/jsonobjName- The default name of the object instantiated by the client JavaScript.enableCookies- Set whether the client JavaScript stored results of client side processing in cookies.host- The host that the client JavaScript should query for updates. If null or blank then the host from the request will be usedprotocol- The protocol (HTTP or HTTPS) that the client JavaScript will use when querying for updates. If null or blank then the protocol from the request will be usedcontextRoot- The <context-root> setting from the web.xml. This is needed when creating the callback URL.
-
-
Method Detail
-
processInternal
protected void processInternal(fiftyone.pipeline.core.data.FlowData data) throws Exception- Specified by:
processInternalin classfiftyone.pipeline.core.flowelements.FlowElementBase<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>- Throws:
Exception
-
getElementDataKey
public String getElementDataKey()
- Specified by:
getElementDataKeyin interfacefiftyone.pipeline.core.flowelements.FlowElement<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>- Specified by:
getElementDataKeyin classfiftyone.pipeline.core.flowelements.FlowElementBase<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>
-
getEvidenceKeyFilter
public fiftyone.pipeline.core.data.EvidenceKeyFilter getEvidenceKeyFilter()
- Specified by:
getEvidenceKeyFilterin interfacefiftyone.pipeline.core.flowelements.FlowElement<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>- Specified by:
getEvidenceKeyFilterin classfiftyone.pipeline.core.flowelements.FlowElementBase<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>
-
getProperties
public List<fiftyone.pipeline.core.data.ElementPropertyMetaData> getProperties()
- Specified by:
getPropertiesin interfacefiftyone.pipeline.core.flowelements.FlowElement<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>- Specified by:
getPropertiesin classfiftyone.pipeline.core.flowelements.FlowElementBase<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>
-
managedResourcesCleanup
protected void managedResourcesCleanup()
- Specified by:
managedResourcesCleanupin classfiftyone.pipeline.core.flowelements.FlowElementBase<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>
-
unmanagedResourcesCleanup
protected void unmanagedResourcesCleanup()
- Specified by:
unmanagedResourcesCleanupin classfiftyone.pipeline.core.flowelements.FlowElementBase<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData>
-
-