borland Packages Class Hierarchy internetbeans Package
java.lang.Object +----javax.servlet.GenericServlet +----javax.servlet.http.HttpServlet +----com.borland.internetbeans.ImageServer
Properties Methods
Implements Serializable, Servlet, ServletConfig
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.
public static int cacheImage(InputStream imageStream)Caches the image for retrieval.
imageStream
Returns cache ID number, to be appended to the servlet path.
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.
public static String getPath()
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.