...
boolean isHoliday(Date date, boolean isObserved, Optional String type) - tells whether a given date is a holiday or not of the given .
boolean isHoliday1(Date date, boolean isObserved, String type) - Same as isHoliday except with additional filter for holiday type.
Holiday getClosestHoliday(Date date, boolean searchForward, boolean isObserved, Optional String type) - if searchForward is true, it returns the first holiday of the given type that occurs after the given date, if false, it returns the nearest holiday of the given type that occurred before the given date. If the given date is itself a holiday, return the nearest Holiday holiday other than itself.
Holiday getClosestHoliday1(Date date, boolean searchForward, boolean isObserved, String type) - same as getClosestHoliday except will only find the closest holiday of a specific type.
List<Holiday> getHolidaysInMonth(Date month, boolean isObserved, Optional String type) - gets all holidays in the given month, note the month argument must include a year.
List<Holiday> getHolidaysInYeargetHolidaysInMonth1(Date yearmonth, boolean isObserved, Optional String typeString type) - same as getHolidaysInMonth except will only return holidays of the given type.
List<Holiday> getHolidaysInYear(Date year, boolean isObserved) - gets all holidays in the given year.
List<Holiday> getHolidaysInYear1(Date year, boolean isObserved, String type) - same as getHolidaysInYear except will only return holidays of the given type.
List<Holiday> getHolidaysInRange(Date startDate, Date endDate, boolean includeStartAndEnd, boolean isObserved, Optional String type) - gets all holidays within the given time frame, using the includeStartAndEnd param to determine whether or not to include the start and end dates among the return values.
List<Holiday> getHolidaysInRange1(Date startDate, Date endDate, boolean includeStartAndEnd, boolean isObserved, Optional String type) - same as getHolidaysInRange except will only return holidays of the given type.
Grails
This web service was developed in a Grails application. This was a fairly straightforward process, only requiring a couple of things in order to get the service running after installation of Grails:
...