java.lang.Object
fr.paris.lutece.plugins.appointment.modules.rest.rs.filter.QueryParamValidator

public class QueryParamValidator extends Object
  • Field Details

  • Method Details

    • validate

      public static ValidationErrorResponse validate(jakarta.servlet.http.HttpServletRequest request)
      Validate the parameters of a search of available time slots: the meeting points and the dates are required, the meeting point ids are plain identifiers and the number of documents a positive integer.
      Parameters:
      request - the request
      Returns:
      the validation errors, empty when the parameters are valid
    • isValideDate

      public static boolean isValideDate(String dateStr)
      Check that a date has the search format.
      Parameters:
      dateStr - the date
      Returns:
      true if the date can be parsed