|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
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.hyperic.hq.ui.servlet.ParameterizedServlet
org.hyperic.hq.ui.servlet.ImageServlet
org.hyperic.hq.ui.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 java.lang.String |
TREE_VAR_PARAM
Request parameter for the tree variable session attribute. |
Fields inherited from class org.hyperic.hq.ui.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 java.lang.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,
java.lang.Object imgObj)
Render a JPEG version of the image into the output stream. |
protected void |
renderPngImage(javax.servlet.ServletOutputStream out,
java.lang.Object imgObj)
Render a PNG version of the image into the output stream. |
Methods inherited from class org.hyperic.hq.ui.servlet.ImageServlet |
---|
doGet, getDefaultImageFormat, getDefaultImageHeight, 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 java.lang.String TREE_VAR_PARAM
public static final int IMAGE_WIDTH_DEFAULT
Constructor Detail |
---|
public NavMapImageServlet()
Method Detail |
---|
protected java.lang.Object createImage(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
createImage
in class ImageServlet
request
- the servlet request
javax.servlet.ServletException
protected void renderPngImage(javax.servlet.ServletOutputStream out, java.lang.Object imgObj) throws java.io.IOException
renderPngImage
in class ImageServlet
out
- the output stream
java.io.IOException
protected void renderJpegImage(javax.servlet.ServletOutputStream out, java.lang.Object imgObj) throws java.io.IOException
renderJpegImage
in class ImageServlet
out
- the output stream
java.io.IOException
protected void parseParameters(javax.servlet.http.HttpServletRequest request)
parseParameters
in class ImageServlet
request
- the HTTP request objectprotected int getDefaultImageWidth()
imageWidth
.
getDefaultImageWidth
in class ImageServlet
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |