Class GetUrlQueryParam

java.lang.Object
com.northconcepts.datapipeline.transform.Transformer
com.northconcepts.datapipeline.transform.net.GetUrlQueryParam

public class GetUrlQueryParam extends Transformer
Retrieves all query parameter values in a URL for the given name and stores them in the target field. * This transformer will be added to next release of DataPipeline.
  • Constructor Details

    • GetUrlQueryParam

      public GetUrlQueryParam(String urlFieldName, String queryParamName, String targetFieldName)
      Creates a transformer that adds each value of the named query parameter (name matched ignoring case, value not URL-decoded) in the URL field to the target field.
  • Method Details

    • transform

      public boolean transform(Record record) throws Throwable
      Description copied from class: Transformer
      Applies this transformer to a record on its way through a TransformingReader or TransformingWriter.

      Contract for subclasses (see also docs/authoring/Transformer.md):

      • Mutate record in place as needed.
      • Return true to keep the record in the pipeline.
      • Return false to drop the record (the host routes it to a discard writer if one is configured, otherwise it disappears).
      • Throw to fail (or route to a discard writer, depending on host configuration).
      • Do not call incrementRecordCount() on the host endpoint; the host handles it.
      Specified by:
      transform in class Transformer
      Throws:
      Throwable