Package de.xima.fc.servlet.parameter
Class AppointmentIcalServletParameter
java.lang.Object
de.xima.fc.servlet.parameter.AServletParameter
de.xima.fc.servlet.parameter.AppointmentIcalServletParameter
- All Implemented Interfaces:
Serializable
Represents the parameters of the
AppointmentIcalServlet
. Also offers a static constructor method for parsing
the parameters.- 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 TypeMethodDescriptioncom.google.common.collect.Range<Instant>
getRange()
boolean
parse
(javax.servlet.http.HttpServletRequest request) Parses the parameters passed to theAppointmentIcalServlet
and returns the result.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
AppointmentTemplate
for which an iCal file should be created.
-
getClientUuid
- Returns:
- The UUID of a client who owns the
getAppointmentTemplateUuid()
.
-
getLocale
- Returns:
- The locale to use for localized messages etc.
-
getRange
- Returns:
- The range of appointments to include in the returned iCal file.
-
getSourceUrl
-
isIncludePastAppointments
public boolean isIncludePastAppointments()- Returns:
- Whether appointment in the past should be included.
-
toQueryParams
- Returns:
- Converts these servlet parameters to the corresponding
IAppointmentIcalQueryParams
.
-
toString
- Overrides:
toString
in classAServletParameter
-
parse
public static AppointmentIcalServletParameter parse(javax.servlet.http.HttpServletRequest request) throws IllegalArgumentException Parses the parameters passed to theAppointmentIcalServlet
and returns the result.- Parameters:
request
- theHttpServletRequest
- Returns:
- The parsed parameters.
- Throws:
IllegalArgumentException
- When the parameters are invalid.
-