Package fr.gouv.vitam.elastic.kibana.interceptor.rest

# Class ReplacePatternUtils

java.lang.Object
fr.gouv.vitam.elastic.kibana.interceptor.rest.ReplacePatternUtils

public class ReplacePatternUtils extends Object
ReplacePatternUtils

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ReplacePatternUtils(List<String> whiteList)`
  Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `replaceSharpByUnderscore(String textToReplace)`
  Replace Sharp By Underscore
  `String`
  `replaceUnderscoreBySharp(String textToReplace)`
  Replace Underscore By Sharp

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ReplacePatternUtils

    public ReplacePatternUtils(List<String> whiteList)
    Constructor
    Parameters:
      `whiteList` - white list define in configuration file.

- ## Method Details

  - ### replaceUnderscoreBySharp

    public String replaceUnderscoreBySharp(String textToReplace)
    Replace Underscore By Sharp
    Parameters:
      `textToReplace` - textToReplace
    Returns:
      the text replaced with sharp

  - ### replaceSharpByUnderscore

    public String replaceSharpByUnderscore(String textToReplace)
    Replace Sharp By Underscore
    Parameters:
      `textToReplace` - textToReplace
    Returns:
      the text replaced with underscore