|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.rhq.enterprise.gui.common.servlet.ParameterizedServlet
org.rhq.enterprise.gui.common.servlet.ImageServlet
org.rhq.enterprise.gui.common.servlet.NavMapImageServlet
public class NavMapImageServlet
This servlet returns a response that contains the binary data of an image (JPEG or PNG) that can be viewed in a web browser.
The navigation map servlet takes the following parameters (any applicable defaults are in bold and required parameters are in italics):
| key | value |
|---|---|
| treeVar | <string> |
| Field Summary | |
|---|---|
static int |
IMAGE_WIDTH_DEFAULT
Default image width. |
static String |
TREE_VAR_PARAM
Request parameter for the tree variable session attribute. |
| Fields inherited from class org.rhq.enterprise.gui.common.servlet.ImageServlet |
|---|
IMAGE_FORMAT_JPEG, IMAGE_FORMAT_PARAM, IMAGE_FORMAT_PNG, IMAGE_HEIGHT_DEFAULT, IMAGE_HEIGHT_PARAM, IMAGE_WIDTH_PARAM |
| Constructor Summary | |
|---|---|
NavMapImageServlet()
|
|
| Method Summary | |
|---|---|
protected Object |
createImage(javax.servlet.http.HttpServletRequest request)
Create the image being rendered. |
protected int |
getDefaultImageWidth()
Return the default imageWidth. |
protected void |
parseParameters(javax.servlet.http.HttpServletRequest request)
This method will be called automatically by the ChartServlet. |
protected void |
renderJpegImage(javax.servlet.ServletOutputStream out,
Object imgObj)
Render a JPEG version of the image into the output stream. |
protected void |
renderPngImage(javax.servlet.ServletOutputStream out,
Object imgObj)
Render a PNG version of the image into the output stream. |
| Methods inherited from class org.rhq.enterprise.gui.common.servlet.ImageServlet |
|---|
doGet, getDefaultImageFormat, getDefaultImageHeight, getImageFormat, getImageHeight, getImageWidth, init |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TREE_VAR_PARAM
public static final int IMAGE_WIDTH_DEFAULT
| Constructor Detail |
|---|
public NavMapImageServlet()
| Method Detail |
|---|
protected Object createImage(javax.servlet.http.HttpServletRequest request)
throws javax.servlet.ServletException
createImage in class ImageServletrequest - the servlet request
javax.servlet.ServletException
protected void renderPngImage(javax.servlet.ServletOutputStream out,
Object imgObj)
throws IOException
renderPngImage in class ImageServletout - the output stream
IOException
protected void renderJpegImage(javax.servlet.ServletOutputStream out,
Object imgObj)
throws IOException
renderJpegImage in class ImageServletout - the output stream
IOExceptionprotected void parseParameters(javax.servlet.http.HttpServletRequest request)
parseParameters in class ImageServletrequest - the HTTP request objectprotected int getDefaultImageWidth()
imageWidth.
getDefaultImageWidth in class ImageServlet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||