borland Packages  Class Hierarchy  internetbeans Package 

ImageServer class

java.lang.Object
   +----javax.servlet.GenericServlet
           +----javax.servlet.http.HttpServlet
                   +----com.borland.internetbeans.ImageServer

About the ImageServer class

Properties  Methods  

Implements Serializable, Servlet, ServletConfig

Note: This package is a feature of JBuilder Professional and Enterprise.

The ImageServer caches binary data for images from other Ix components. The Ix components generate a corresponding IMG tag in their HTML with the ImageServer servlet in the SRC attribute.


ImageServer properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

Properties implemented in javax.servlet.GenericServlet

ImageServer methods

Methods implemented in this class

Methods implemented in java.lang.Object

Methods implemented in javax.servlet.GenericServlet

Methods implemented in javax.servlet.http.HttpServlet


ImageServer methods

cacheImage(java.io.InputStream)

  public static int cacheImage(InputStream imageStream)
Caches the image for retrieval.

Parameters:

imageStream
The image data

Returns cache ID number, to be appended to the servlet path.

doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

  public void doGet(HttpServletRequest req, HttpServletResponse res)
Returns the image in the request path, e.g. /servlet/com.borland.internetbeans.ImageServer/42 requests image ID 42.

Overrides: javax.servlet.http.HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

getPath()

  public static String getPath()

setPath(java.lang.String)

  public static void setPath(String newPath)
The URL path to this servlet. By default, the servlet invoker and class name (/servlet/com.borland.internetbeans.ImageServer/) are used, but you can set another path if you set up another URL pattern-to-alias mapping. The path always ends with a slash to allow simple concatenation of the image ID.