Interface RequestWebScope.IParamValueCleanser

  • Enclosing class:
    RequestWebScope
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface RequestWebScope.IParamValueCleanser
    The param value cleanser interface to be used globally.
    Since:
    9.0.6
    Author:
    Philip Helger
    • Method Detail

      • getCleanedValue

        @Nullable
        String getCleanedValue​(@Nonnull
                               String sParamName,
                               @Nonnegative
                               int nParamIndex,
                               @Nullable
                               String sParamValue)
        Get the cleaned value of a parameter value.
        Parameters:
        sParamName - The current parameter name. May not be null.
        nParamIndex - The index of the value. If the parameter has multiple values this is respective index. If there is only one value, this is always 0 (zero).
        sParamValue - The value to be cleaned. May be null.
        Returns:
        The cleaned value. May also be null.