Package de.xima.fc.servlet.parameter
Class AppointmentFreeSlotsServletParameter
java.lang.Object
de.xima.fc.servlet.parameter.AServletParameter
de.xima.fc.servlet.parameter.AppointmentFreeSlotsServletParameter
- All Implemented Interfaces:
Serializable
Represents the parsed parameters of a request to the
AppointmentFreeSlotsServlet
.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.xima.fc.servlet.parameter.AServletParameter
AServletParameter.MultipartRequest
-
Field Summary
Fields inherited from class de.xima.fc.servlet.parameter.AServletParameter
LOG
-
Method Summary
Modifier and TypeMethodDescriptiongetMonth()
int
getYear()
boolean
parse
(javax.servlet.http.HttpServletRequest request) Given an HTTP request of an appointment free slot servlet, parses and validates the parameters.toQueryParams
(long clientId) Converts these servlet parameters to the appropriate parameters required by the free slot query API.toString()
Methods inherited from class de.xima.fc.servlet.parameter.AServletParameter
getBoolean, getBoolean, getBoolean, getEnum, getEnum, getEnum, getFileData, getFileItem, getInteger, getInteger, getInteger, getLocalDateTime, getLocalDateTime, getLocalDateTime, getLocale, getLocale, getLocale, getLong, getLong, getLong, getPathPart, getString, getString, getString, getUuid, getUuid, getUuid, getZoneId, getZoneId, getZoneId, toBoolean, toEnum, toInteger, toLocalDateTime, toLocale, toLong, toString, toUuid, toZoneId
-
Method Details
-
getAppointmentTemplateUuid
- Returns:
- The UUID of the appointment template for which to find free slots.
-
getMonth
- Returns:
- The month for which to find free slots.
-
getYear
public int getYear()- Returns:
- The year for which to find free slots.
-
isIncludePastAppointments
public boolean isIncludePastAppointments()- Returns:
- Whether appointments that lie in the past (relative to the server time) are included.
-
getZoneId
- Returns:
- The zone ID for the returned free slots. May be null for the default time zone.
-
toQueryParams
Converts these servlet parameters to the appropriate parameters required by the free slot query API.- Parameters:
clientId
- ID of the current client.- Returns:
- The parameters that can be passed to the free slot query executor or API method.
-
toString
- Overrides:
toString
in classAServletParameter
-
parse
public static AppointmentFreeSlotsServletParameter parse(javax.servlet.http.HttpServletRequest request) throws IOException Given an HTTP request of an appointment free slot servlet, parses and validates the parameters.- Parameters:
request
- The HTTP request to the appointment free slot servlet.- Returns:
- The parsed servlet parameters.
- Throws:
IOException
- When the request data could not be read.IllegalArgumentException
- When the parameters are invalid.
-