Package org.opencms.jsp
Class CmsJspTagPdfThumbnail
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.opencms.jsp.CmsJspTagPdfThumbnail
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class CmsJspTagPdfThumbnail extends javax.servlet.jsp.tagext.TagSupport
JSP tag to generate a link to a PDF produced from a given XML content.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsJspTagPdfThumbnail()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doStartTag()
static java.lang.String
pdfTagAction(javax.servlet.ServletRequest request, java.lang.String file, int width, int height, java.lang.String format)
The implementation of the tag.void
setFile(java.lang.String file)
Sets the path to the PDF.void
setFormat(java.lang.String format)
Setter for the format path.void
setHeight(java.lang.String height)
Sets the height.void
setWidth(java.lang.String width)
Sets the width.
-
-
-
Constructor Detail
-
CmsJspTagPdfThumbnail
public CmsJspTagPdfThumbnail()
-
-
Method Detail
-
pdfTagAction
public static java.lang.String pdfTagAction(javax.servlet.ServletRequest request, java.lang.String file, int width, int height, java.lang.String format) throws CmsException
The implementation of the tag.- Parameters:
request
- the current requestfile
- the path to the PDFwidth
- the thumbnail widthheight
- the thumbnail heightformat
- the image format- Returns:
- the link to the PDF thumbnail
- Throws:
CmsException
- if something goes wrong
-
doStartTag
public int doStartTag()
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.TagSupport
- See Also:
Tag.doStartTag()
-
setFile
public void setFile(java.lang.String file)
Sets the path to the PDF.- Parameters:
file
- the PDF path
-
setFormat
public void setFormat(java.lang.String format)
Setter for the format path.- Parameters:
format
- the format path
-
setHeight
public void setHeight(java.lang.String height)
Sets the height.- Parameters:
height
- the height to set
-
setWidth
public void setWidth(java.lang.String width)
Sets the width.- Parameters:
width
- the width to set
-
-