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:
-
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>Nested classes/interfaces inherited from interface fiftyone.pipeline.core.flowelements.FlowElement
fiftyone.pipeline.core.flowelements.FlowElement.DataFactory<T extends fiftyone.pipeline.core.data.ElementData> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final booleanprotected Stringprotected Stringprotected final Stringprotected StringFields inherited from class fiftyone.pipeline.core.flowelements.FlowElementBase
logger, typedKey -
Constructor Summary
ConstructorsConstructorDescriptionJavaScriptBuilderElement(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
Modifier and TypeMethodDescriptionfiftyone.pipeline.core.data.EvidenceKeyFilterList<fiftyone.pipeline.core.data.ElementPropertyMetaData>protected voidprotected voidprocessInternal(fiftyone.pipeline.core.data.FlowData data) protected voidMethods inherited from class fiftyone.pipeline.core.flowelements.FlowElementBase
addPipeline, close, close, getDataFactory, getPipelines, getProperty, getTypedDataKey, isClosed, isConcurrent, process
-
Field Details
-
host
-
endpoint
-
protocol
-
contextRoot
-
objName
-
enableCookies
protected final boolean enableCookies
-
-
Constructor Details
-
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 Details
-
processInternal
- Specified by:
processInternalin classfiftyone.pipeline.core.flowelements.FlowElementBase<JavaScriptBuilderData,fiftyone.pipeline.core.data.ElementPropertyMetaData> - Throws:
Exception
-
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
- 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>
-