PageRenderTime 131ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/source/commons/commons-shared/src/main/java/nl/overheid/aerius/shared/Constants.java

https://gitlab.com/AERIUS/AERIUS
Java | 50 lines | 10 code | 6 blank | 34 comment | 0 complexity | 60305c994d7cca7b33923278dbe9b737 MD5 | raw file
  1. /*
  2. * Copyright the State of the Netherlands
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Affero General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Affero General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Affero General Public License
  15. * along with this program. If not, see http://www.gnu.org/licenses/.
  16. */
  17. package nl.overheid.aerius.shared;
  18. /**
  19. * Constants shared by the client and server.
  20. *
  21. * Contained in a concrete class to allow for static imports
  22. */
  23. public final class Constants {
  24. /**
  25. * Locale The Netherlands.
  26. */
  27. public static final String LOCALE_NL = "nl";
  28. /**
  29. * The locale to use when nothing is specified. Fallback locale if you will.
  30. */
  31. public static final String DEFAULT_LOCALE = LOCALE_NL;
  32. /**
  33. * The querystring key to store the locale in.
  34. */
  35. public static final String LANGUAGE_PARAMETER = "locale";
  36. /**
  37. * Regex used to a correct emailaddress.
  38. */
  39. public static final String VALID_EMAIL_ADDRESS_REGEX =
  40. "^[\\w\\u00C0-\\u02AF-\\+]+(\\.[\\w\\u00C0-\\u02AF-]+)*@[\\w\\u00C0-\\u02AF-]+(\\.[\\w\\u00C0-\\u02AF]+)*(\\.[A-Za-z]{2,})$";
  41. private Constants() {
  42. // Constants class.
  43. }
  44. }