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 classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageRequestParameterforRequest(javax.servlet.http.HttpServletRequest req) Parses the parameters given to theFormPreviewImageServletand 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
Projektfor which to return the preview image.
-
getProjectId
- Returns:
- The ID of the
Projektfor 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 theFormPreviewImageServletand returns them.- Parameters:
req- Request that was made to theFormPreviewImageServlet.- Returns:
- The parsed parameters.
-