Class AbstractJsonParser.Conf<T extends AbstractJsonParser.Conf<T>>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.lang.String> jsonCuts
      Tuple of JsonPath and 'field' for completed chunk detection.
      protected JsonSurferTool jsonSurferTool  
    • Constructor Summary

      Constructors 
      Constructor Description
      Conf()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      T addJsonPath​(java.lang.String jsonPath)
      Add a single jsonPath to parse for.
      T addJsonPath​(java.lang.String jsonPath, java.lang.String fieldName)
      Add a single jsonPath and field name to parse for.
      protected abstract AbstractJsonParser build()  
      protected abstract T self()  
      T setJsonCuts​(java.util.Map<java.lang.String,​java.lang.String> jsonCuts)
      Add jsonPaths and field names to parse for.
      T setJsonSurferTool​(JsonSurferTool jsonSurferTool)
      Set a specific JsonSurferTool.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • jsonCuts

        protected final java.util.Map<java.lang.String,​java.lang.String> jsonCuts
        Tuple of JsonPath and 'field' for completed chunk detection. If value it is null, use the current field name of the JSON read or just 'data' as name.
    • Constructor Detail

      • Conf

        public Conf()
    • Method Detail

      • setJsonSurferTool

        public T setJsonSurferTool​(JsonSurferTool jsonSurferTool)
        Set a specific JsonSurferTool.
        Parameters:
        jsonSurferTool - The JsonSurferTool.
        Returns:
        self()
      • addJsonPath

        public T addJsonPath​(java.lang.String jsonPath)
        Add a single jsonPath to parse for.
        Parameters:
        jsonPath - The jsonPath
        Returns:
        self()
      • addJsonPath

        public T addJsonPath​(java.lang.String jsonPath,
                             java.lang.String fieldName)
        Add a single jsonPath and field name to parse for.
        Parameters:
        jsonPath - The jsonPath
        fieldName - Name of the field
        Returns:
        self()
      • setJsonCuts

        public T setJsonCuts​(java.util.Map<java.lang.String,​java.lang.String> jsonCuts)
        Add jsonPaths and field names to parse for.
        Parameters:
        jsonCuts - A map of jsonPaths and fieldNames.
        Returns:
        self()
      • self

        protected abstract T self()