Tabnine Logo
TemplateBuilder.isObjectMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
isObjectMessage
method
in
org.wso2.siddhi.core.util.transport.TemplateBuilder

Best Java code snippets using org.wso2.siddhi.core.util.transport.TemplateBuilder.isObjectMessage (Showing top 3 results out of 315)

origin: org.wso2.extension.siddhi.map.json/siddhi-map-json

/**
 * Initialize the mapper and the mapping configurations.
 *
 * @param streamDefinition          The stream definition
 * @param optionHolder              Option holder containing static and dynamic options
 * @param payloadTemplateBuilderMap Unmapped list of payloads for reference
 */
@Override
public void init(StreamDefinition streamDefinition, OptionHolder optionHolder,
         Map<String, TemplateBuilder> payloadTemplateBuilderMap, ConfigReader mapperConfigReader,
         SiddhiAppContext siddhiAppContext) {
  this.attributeNameArray = streamDefinition.getAttributeNameArray();
  this.enclosingElement = optionHolder.validateAndGetStaticValue(ENCLOSING_ELEMENT_IDENTIFIER, null);
  this.isJsonValidationEnabled = Boolean.parseBoolean(optionHolder
      .validateAndGetStaticValue(JSON_VALIDATION_IDENTIFIER, "false"));
  //if @payload() is added there must be at least 1 element in it, otherwise a SiddhiParserException raised
  if (payloadTemplateBuilderMap != null && payloadTemplateBuilderMap.size() != 1) {
    throw new SiddhiAppCreationException("Json sink-mapper does not support multiple @payload mappings, " +
        "error at the mapper of '" + streamDefinition.getId() + "'");
  }
  if (payloadTemplateBuilderMap != null &&
      payloadTemplateBuilderMap.get(payloadTemplateBuilderMap.keySet().iterator().next()).isObjectMessage()) {
    throw new SiddhiAppCreationException("Json sink-mapper does not support object @payload mappings, " +
        "error at the mapper of '" + streamDefinition.getId() + "'");
  }
}
origin: org.wso2.extension.siddhi.map.text/siddhi-map-text

@Override
public void init(StreamDefinition streamDefinition, OptionHolder optionHolder, Map<String,
    TemplateBuilder> payloadTemplateBuilderMap, ConfigReader mapperConfigReader,
         SiddhiAppContext siddhiAppContext) {
  this.streamID = streamDefinition.getId();
  this.attributeList = streamDefinition.getAttributeList();
  this.eventGroupEnabled = Boolean.valueOf(optionHolder
      .validateAndGetStaticValue(OPTION_GROUP_EVENTS, DEFAULT_GROUP_EVENTS));
  this.endOfLine = optionHolder.validateAndGetStaticValue(OPTION_NEW_LINE, DEFAULT_NEW_LINE);
  this.eventDelimiter = optionHolder.validateAndGetStaticValue(OPTION_GROUP_EVENTS_DELIMITER,
      DEFAULT_EVENTS_DELIMITER) + endOfLine;
  //if @payload() is added there must be at least 1 element in it, otherwise a SiddhiParserException raised
  if (payloadTemplateBuilderMap != null && payloadTemplateBuilderMap.size() != 1) {
    throw new SiddhiAppCreationException("Text sink-mapper does not support multiple @payload mappings, " +
        "error at the mapper of '" + streamDefinition.getId() + "'");
  }
  if (payloadTemplateBuilderMap != null &&
      payloadTemplateBuilderMap.get(payloadTemplateBuilderMap.keySet().iterator().next()).isObjectMessage()) {
    throw new SiddhiAppCreationException("Text sink-mapper does not support object @payload mappings, " +
        "error at the mapper of '" + streamDefinition.getId() + "'");
  }
}
origin: org.wso2.extension.siddhi.map.xml/siddhi-map-xml

  payloadTemplateBuilderMap.get(payloadTemplateBuilderMap.keySet().iterator().next()).isObjectMessage()) {
throw new SiddhiAppCreationException("Xml sink-mapper does not support object @payload mappings, " +
    "error at the mapper of '" + streamDefinition.getId() + "'");
org.wso2.siddhi.core.util.transportTemplateBuilderisObjectMessage

Popular methods of TemplateBuilder

  • build

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now