Package de.xima.fc.servlet.parameter
Class AServletParameter
- java.lang.Object
-
- de.xima.fc.servlet.parameter.AServletParameter
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AjaxUploadServletAddUploadParams
,AjaxUploadServletFetchUploadDataParams
,AjaxUploadServletRemoveUploadParams
,AppointmentFreeSlotsServletParameter
,AppointmentIcalServletParameter
public abstract class AServletParameter extends Object implements Serializable
Base class for servlet parameters classes. They encapsulate the parameters of a servlet and are responsible for parsing a request.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AServletParameter.MultipartRequest
Deprecated.useMultipartRequest
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
-
Constructor Summary
Constructors Constructor Description AServletParameter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static Boolean
getBoolean(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, Boolean defaultValue)
protected static Boolean
getBoolean(String name, MultipartRequest request, boolean required, Boolean defaultValue)
protected static Boolean
getBoolean(String name, javax.servlet.http.HttpServletRequest request, boolean required, Boolean defaultValue)
protected static <E extends Enum<E>>
EgetEnum(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, E defaultValue, Class<E> enumClass)
protected static <E extends Enum<E>>
EgetEnum(String name, MultipartRequest request, boolean required, E defaultValue, Class<E> enumClass)
protected static <E extends Enum<E>>
EgetEnum(String name, javax.servlet.http.HttpServletRequest request, boolean required, E defaultValue, Class<E> enumClass)
protected static byte[]
getFileData(String name, AServletParameter.MultipartRequest req, boolean required)
Deprecated.protected static org.apache.commons.fileupload.FileItem
getFileItem(String name, MultipartRequest req, boolean required)
protected static Integer
getInteger(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, Integer defaultValue)
protected static Integer
getInteger(String name, MultipartRequest request, boolean required, Integer defaultValue)
protected static Integer
getInteger(String name, javax.servlet.http.HttpServletRequest request, boolean required, Integer defaultValue)
protected static LocalDateTime
getLocalDateTime(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, LocalDateTime defaultValue)
protected static LocalDateTime
getLocalDateTime(String name, MultipartRequest request, boolean required, LocalDateTime defaultValue)
protected static LocalDateTime
getLocalDateTime(String name, javax.servlet.http.HttpServletRequest request, boolean required, LocalDateTime defaultValue)
protected static Locale
getLocale(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, Locale defaultValue)
protected static Locale
getLocale(String name, MultipartRequest request, boolean required, Locale defaultValue)
protected static Locale
getLocale(String name, javax.servlet.http.HttpServletRequest request, boolean required, Locale defaultValue)
protected static Long
getLong(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, Long defaultValue)
protected static Long
getLong(String name, MultipartRequest request, boolean required, Long defaultValue)
protected static Long
getLong(String name, javax.servlet.http.HttpServletRequest request, boolean required, Long defaultValue)
protected static String
getPathPart(int pathIndex, javax.servlet.http.HttpServletRequest request)
protected static String
getString(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, String defaultValue)
protected static String
getString(String name, MultipartRequest request, boolean required, String defaultValue)
protected static String
getString(String name, javax.servlet.http.HttpServletRequest request, boolean required, String defaultValue)
protected static UUID
getUuid(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, UUID defaultValue)
protected static UUID
getUuid(String name, MultipartRequest request, boolean required, UUID defaultValue)
protected static UUID
getUuid(String name, javax.servlet.http.HttpServletRequest request, boolean required, UUID defaultValue)
protected static ZoneId
getZoneId(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, ZoneId defaultValue)
protected static ZoneId
getZoneId(String name, MultipartRequest request, boolean required, ZoneId defaultValue)
protected static ZoneId
getZoneId(String name, javax.servlet.http.HttpServletRequest request, boolean required, ZoneId defaultValue)
protected static Boolean
toBoolean(String name, String value, boolean required, Boolean defaultValue)
protected static <E extends Enum<E>>
EtoEnum(String name, String value, boolean required, E defaultValue, Class<E> enumClass)
protected static Integer
toInteger(String name, String value, boolean required, Integer defaultValue)
protected static LocalDateTime
toLocalDateTime(String name, Long timestamp, boolean required, LocalDateTime defaultValue)
protected static Locale
toLocale(String name, String languageTag, boolean required, Locale defaultValue)
protected static Long
toLong(String name, String value, boolean required, Long defaultValue)
String
toString()
protected static String
toString(String name, String value, boolean required, String defaultValue)
protected static UUID
toUuid(String name, String value, boolean required, UUID defaultValue)
protected static ZoneId
toZoneId(String name, String value, boolean required, ZoneId defaultValue)
-
-
-
Method Detail
-
getBoolean
protected static Boolean getBoolean(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, Boolean defaultValue)
-
getBoolean
protected static Boolean getBoolean(String name, javax.servlet.http.HttpServletRequest request, boolean required, Boolean defaultValue)
-
getBoolean
protected static Boolean getBoolean(String name, MultipartRequest request, boolean required, Boolean defaultValue)
-
getEnum
protected static <E extends Enum<E>> E getEnum(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, E defaultValue, Class<E> enumClass)
-
getEnum
protected static <E extends Enum<E>> E getEnum(String name, javax.servlet.http.HttpServletRequest request, boolean required, E defaultValue, Class<E> enumClass)
-
getEnum
protected static <E extends Enum<E>> E getEnum(String name, MultipartRequest request, boolean required, E defaultValue, Class<E> enumClass)
-
getFileItem
protected static org.apache.commons.fileupload.FileItem getFileItem(String name, MultipartRequest req, boolean required)
-
getInteger
protected static Integer getInteger(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, Integer defaultValue)
-
getInteger
protected static Integer getInteger(String name, javax.servlet.http.HttpServletRequest request, boolean required, Integer defaultValue)
-
getInteger
protected static Integer getInteger(String name, MultipartRequest request, boolean required, Integer defaultValue)
-
getLocalDateTime
protected static LocalDateTime getLocalDateTime(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, LocalDateTime defaultValue)
-
getLocalDateTime
protected static LocalDateTime getLocalDateTime(String name, javax.servlet.http.HttpServletRequest request, boolean required, LocalDateTime defaultValue)
-
getLocalDateTime
protected static LocalDateTime getLocalDateTime(String name, MultipartRequest request, boolean required, LocalDateTime defaultValue)
-
getLocale
protected static Locale getLocale(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, Locale defaultValue)
-
getLocale
protected static Locale getLocale(String name, javax.servlet.http.HttpServletRequest request, boolean required, Locale defaultValue)
-
getLocale
protected static Locale getLocale(String name, MultipartRequest request, boolean required, Locale defaultValue)
-
getLong
protected static Long getLong(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, Long defaultValue)
-
getLong
protected static Long getLong(String name, javax.servlet.http.HttpServletRequest request, boolean required, Long defaultValue)
-
getLong
protected static Long getLong(String name, MultipartRequest request, boolean required, Long defaultValue)
-
getPathPart
protected static String getPathPart(int pathIndex, javax.servlet.http.HttpServletRequest request)
-
getString
protected static String getString(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, String defaultValue)
-
getString
protected static String getString(String name, javax.servlet.http.HttpServletRequest request, boolean required, String defaultValue)
-
getString
protected static String getString(String name, MultipartRequest request, boolean required, String defaultValue)
-
getUuid
protected static UUID getUuid(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, UUID defaultValue)
-
getUuid
protected static UUID getUuid(String name, javax.servlet.http.HttpServletRequest request, boolean required, UUID defaultValue)
-
getUuid
protected static UUID getUuid(String name, MultipartRequest request, boolean required, UUID defaultValue)
-
getZoneId
protected static ZoneId getZoneId(int pathIndex, javax.servlet.http.HttpServletRequest request, boolean required, ZoneId defaultValue)
-
getZoneId
protected static ZoneId getZoneId(String name, javax.servlet.http.HttpServletRequest request, boolean required, ZoneId defaultValue)
-
getZoneId
protected static ZoneId getZoneId(String name, MultipartRequest request, boolean required, ZoneId defaultValue)
-
toBoolean
protected static Boolean toBoolean(String name, String value, boolean required, Boolean defaultValue)
-
toEnum
protected static <E extends Enum<E>> E toEnum(String name, String value, boolean required, E defaultValue, Class<E> enumClass)
-
toInteger
protected static Integer toInteger(String name, String value, boolean required, Integer defaultValue)
-
toLocalDateTime
protected static LocalDateTime toLocalDateTime(String name, Long timestamp, boolean required, LocalDateTime defaultValue)
-
toLocale
protected static Locale toLocale(String name, String languageTag, boolean required, Locale defaultValue)
-
toLong
protected static Long toLong(String name, String value, boolean required, Long defaultValue)
-
toString
protected static String toString(String name, String value, boolean required, String defaultValue)
-
toUuid
protected static UUID toUuid(String name, String value, boolean required, UUID defaultValue)
-
toZoneId
protected static ZoneId toZoneId(String name, String value, boolean required, ZoneId defaultValue)
-
getFileData
@Deprecated protected static byte[] getFileData(String name, AServletParameter.MultipartRequest req, boolean required)
Deprecated.
-
-