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 ImageRequestParameterforRequest(javax.servlet.http.HttpServletRequest req)Parses the parameters given to theFormPreviewImageServletand returns them.StringgetFormat()ProjektgetProject()LonggetProjectId()floatgetQuality()StringgetType()StringtoString()
-
-
-
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
Projektfor 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 theFormPreviewImageServletand returns them.- Parameters:
req- Request that was made to theFormPreviewImageServlet.- Returns:
- The parsed parameters.
-
-