com.tjtieto.wap.wapix
Class WBMPServlet

com.tjtieto.wap.wapix.WBMPServlet

public class WBMPServlet

WBMPServlet

Simple servlet for using WBMPMaster as a dynamic web-service. Users can render any image on the web by invoking this servlet with parameters.

Example:

http://your.machine.com/servlet/wbmp?p=1&w=90&s=0&url=http://some.host/images/someimage.gif

This would cause WBMPMaster to read the image from the defined url and do processing 1 (Floyd-Steinberg) and scale it to width 90px. After that server sends the result as WBMP image with proper mime mapping.

Supported properties:

p = processing method (processing style)
url = url to read the image from
w = (width)
h = (height)
s = (scaling method)
k = (threshold limit for rendering (0-255), default 128)
b = (bgcolor, default white)
i = (invert (0 = false, 1 = true), default 0)
mh = (mirror horizontally (0 = false, 1 = true))
fv = (flip vertically (0 = false, 1 = true))

Version:
1.0.1 15.05.2000
Author:
Jarkko Viinamäki

Constructor Summary
WBMPServlet()
           
 
Method Summary
 void doGet(com.tjtieto.wap.wapix.HttpServletRequest req, com.tjtieto.wap.wapix.HttpServletResponse res)
           
 

Constructor Detail

WBMPServlet

public WBMPServlet()
Method Detail

doGet

public void doGet(com.tjtieto.wap.wapix.HttpServletRequest req,
                  com.tjtieto.wap.wapix.HttpServletResponse res)
           throws com.tjtieto.wap.wapix.ServletException,
                  java.io.IOException