Package de.xima.fc.form.image
Class ImageRequestParameter
java.lang.Object
de.xima.fc.form.image.ImageRequestParameter
Represents the parsed parameters for the
FormPreviewImageServlet
.- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageRequestParameter
forRequest
(javax.servlet.http.HttpServletRequest req) Parses the parameters given to theFormPreviewImageServlet
and returns them.getCrop()
getScale()
getType()
toString()
-
Method Details
-
getCrop
-
getDimension
-
getFormat
- Returns:
- The format of the returned preview image, defaults to
png
.
-
getProject
- Returns:
- The
Projekt
for which to return the preview image.
-
getProjectId
- Returns:
- The ID of the
Projekt
for which to return the preview image.
-
getQuality
- Returns:
- The (compression) quality of the returned preview image, between 0 (worst) and 1 (best). Defaults to
1
.
-
getScale
-
getSourceRectangle
-
getType
- Returns:
- Whether to return the the full version of the preview image or a thumbnail.
-
isKeepAspectRatio
-
toString
-
forRequest
Parses the parameters given to theFormPreviewImageServlet
and returns them.- Parameters:
req
- Request that was made to theFormPreviewImageServlet
.- Returns:
- The parsed parameters.
-