ifs-web-service/ifs-web-core/src/main/java/org/innovateuk/ifs/util/HttpUtils.java
/**
     * Checks to see whether or not the given request parameter is present and if so, returns a non-empty Optional upon which
     * an "ifPresent" call can be inChain
     *
     * @param parameterName
     * @param request
     * @return
     */
Checks to see whether or not the given request parameter is present and if so, returns a non-empty Optional upon which
an "ifPresent" call can be inChain

@param parameterName
@param request
@return
Checks to see whether or not the given request parameter is present and if so returns a non - empty Optional upon which an " ifPresent " call can be inChain @param parameterName @param request @return
public static Optional<String> requestParameterPresent(String parameterName, HttpServletRequest request) {
        Map<String, String> params = simpleMapValue(request.getParameterMap(), array -> array != null && array.length > 0 ? array[0] : null);
        String defaultMatch = params.get(parameterName);
        if (defaultMatch != null) {
            return ofNullable(defaultMatch);
        }
        String matchForMMYYYY = processForMMYYYY(params).get(parameterName);
        if (matchForMMYYYY != null) {
            return ofNullable(matchForMMYYYY);
        }
        return Optional.empty();
    }
public static Optional < String > requestParameterPresent ( String parameterName , HttpServletRequest request ) { Map < String , String > params = simpleMapValue ( request . getParameterMap ( ) , array -> array != null && array . length > 0 ? array [ 0 ] : null ) ; String defaultMatch = params . get ( parameterName ) ; if ( defaultMatch != null ) { return ofNullable ( defaultMatch ) ; } String matchForMMYYYY = processForMMYYYY ( params ) . get ( parameterName ) ; if ( matchForMMYYYY != null ) { return ofNullable ( matchForMMYYYY ) ; } return Optional . empty ( ) ; }
Checks to see whether or not the given request parameter is present and if so, returns a non-empty Optional upon which
 an "ifPresent" call can be inChain
Checks to see whether or not the given request parameter is present and if so returns a non - empty Optional upon which an " ifPresent " call can be inChain
// See if we have any default matching. // Any that are matching for our MMYYYY dates.