Package de.xima.fc.form.image
Class ImageRequestParameter
- java.lang.Object
-
- de.xima.fc.form.image.ImageRequestParameter
-
public class ImageRequestParameter extends Object
Represents the parsed parameters for theFormPreviewImageServlet
.- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageRequestParameter
forRequest(javax.servlet.http.HttpServletRequest req)
Parses the parameters given to theFormPreviewImageServlet
and returns them.String
getFormat()
Projekt
getProject()
Long
getProjectId()
float
getQuality()
String
getType()
String
toString()
-
-
-
Method Detail
-
getFormat
public String getFormat()
- Returns:
- The format of the returned preview image, defaults to
png
.
-
getQuality
public float getQuality()
- Returns:
- The (compression) quality of the returned preview image, between 0 (worst) and 1 (best). Defaults to
1
.
-
getProjectId
public Long getProjectId()
- Returns:
- The ID of the
Projekt
for which to return the preview image.
-
getType
public String getType()
- Returns:
- Whether to return the the full version of the preview image or a thumbnail.
-
forRequest
public static ImageRequestParameter forRequest(javax.servlet.http.HttpServletRequest req)
Parses the parameters given to theFormPreviewImageServlet
and returns them.- Parameters:
req
- Request that was made to theFormPreviewImageServlet
.- Returns:
- The parsed parameters.
-
-