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
public class AppointmentIcalServletParameter extends AServletParameter implements Serializable
Represents the parameters of theAppointmentIcalServlet. Also offers a static constructor method for parsing the parameters.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UUIDgetAppointmentTemplateUuid()UUIDgetClientUuid()LocalegetLocale()com.google.common.collect.Range<Instant>getRange()StringgetSourceUrl()booleanisIncludePastAppointments()static AppointmentIcalServletParameterparse(javax.servlet.http.HttpServletRequest request)Parses the parameters passed to theAppointmentIcalServletand returns the result.IAppointmentIcalQueryParamstoQueryParams()StringtoString()-
Methods inherited from class de.xima.fc.servlet.parameter.AServletParameter
getBoolean, getBoolean, getInteger, getInteger, getLocalDateTime, getLocalDateTime, getLocale, getLong, getLong, getPathPart, getUuid, getUuid, getZoneId, toBoolean, toInteger, toLocalDateTime, toLocale, toLong, toUuid, toZoneId
-
-
-
-
Method Detail
-
getAppointmentTemplateUuid
public UUID getAppointmentTemplateUuid()
- Returns:
- The UUID of the
AppointmentTemplatefor which an iCal file should be created.
-
getClientUuid
public UUID getClientUuid()
- Returns:
- The UUID of a client who owns the
getAppointmentTemplateUuid().
-
getLocale
public Locale getLocale()
- Returns:
- The locale to use for localized messages etc.
-
getRange
public com.google.common.collect.Range<Instant> getRange()
- Returns:
- The range of appointments to include in the returned iCal file.
-
getSourceUrl
public String getSourceUrl()
-
isIncludePastAppointments
public boolean isIncludePastAppointments()
- Returns:
- Whether appointment in the past should be included.
-
toQueryParams
public IAppointmentIcalQueryParams toQueryParams()
- Returns:
- Converts these servlet parameters to the corresponding
IAppointmentIcalQueryParams.
-
toString
public String toString()
- Overrides:
toStringin classAServletParameter
-
parse
public static AppointmentIcalServletParameter parse(javax.servlet.http.HttpServletRequest request) throws IllegalArgumentException
Parses the parameters passed to theAppointmentIcalServletand returns the result.- Parameters:
request- theHttpServletRequest- Returns:
- The parsed parameters.
- Throws:
IllegalArgumentException- When the parameters are invalid.
-
-