com.vmax.servlet
Class FramerServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.vmax.servlet.core.CachedServlet
                    |
                    +--com.vmax.servlet.core.CachedGraphicsServlet
                          |
                          +--com.vmax.servlet.FramerServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class FramerServlet
extends CachedGraphicsServlet

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.vmax.servlet.core.CachedGraphicsServlet
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, DAY, HOUR, MONTH, TTL, WEEK, YEAR
 
Constructor Summary
FramerServlet()
           
 
Method Summary
 java.lang.String[] getActualParameterNames()
          This method supposed to return array of parameters names which are actual parameters for your servlet, this is necessary because request may contain other parameters which are not in use.
 java.lang.String getContentType(javax.servlet.http.HttpServletRequest req)
          This method is used to get content type for setting response content type.
 void serve(BasicHttpRequest req, java.io.ByteArrayOutputStream baos)
          Basic painting method to implement pinting logic.
 
Methods inherited from class com.vmax.servlet.core.CachedGraphicsServlet
countHash, destroy, drawLines, getAlignParameter, getBasePath, getColorParam, getExpiration, getFontsDir, getHexParam, getImageParam, getMetrics, getParam, getParam, getRequiredRect, getWorkingDir, getWorkingDir, init, loadFontFromPath, seekParam, service, service, setRenderingHints, setResponseHeaders, splitText, tileBackground
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
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
 

Constructor Detail

FramerServlet

public FramerServlet()
Method Detail

getActualParameterNames

public java.lang.String[] getActualParameterNames()
Description copied from class: CachedGraphicsServlet
This method supposed to return array of parameters names which are actual parameters for your servlet, this is necessary because request may contain other parameters which are not in use. This parameters values will be used for generating cache entry key.

Specified by:
getActualParameterNames in class CachedGraphicsServlet
Returns:
array of strings containing parameter names.

getContentType

public java.lang.String getContentType(javax.servlet.http.HttpServletRequest req)
Description copied from class: CachedGraphicsServlet
This method is used to get content type for setting response content type.

Specified by:
getContentType in class CachedGraphicsServlet
Parameters:
req - - original http request
Returns:
content type to set in response

serve

public void serve(BasicHttpRequest req,
                  java.io.ByteArrayOutputStream baos)
           throws java.lang.Exception
Description copied from class: CachedGraphicsServlet
Basic painting method to implement pinting logic.

Specified by:
serve in class CachedGraphicsServlet
Parameters:
req - - request wrapper
baos - - output stream to write image data
Throws:
java.lang.Exception