This method allows you to fix the user’s maximum
zoom level on the client side. The method is overwritten to return
a larger value.
As you have seen, creating the servlet is very simple.
This servlet can now answer HTTP requests from a client by sending
JPEG images. If you have installed the example, you can try the following
HTTP request:
http://localhost:8080/xmlgrapher/
demo.xmlgrapher.servlet.XmlGrapherServlet?request=image
&format=JPEG&bbox=0,0,512,512
&width=400
&height=200
&layer=Cities,Links,background%20Map
This produces the following image:
This request asks the servlet named demo.xmlgrapher.servlet.XmlGrapherServlet to
produce an image of size 400 x 200 showing the area (0, 0, 512, 512)
of the manager with the layers “Cities,” “Links,”
and “Background Map” visible.
In most cases, you do not have to know the servlet parameters
because the JavaScript objects or the Java™
classes
provided by Rogue Wave JViews for
the client side take care of the HTTP requests for you.
This example is a very simple servlet. This servlet uses
the same
IlvManagerView instance
for all clients; this means that every client see the same data.
For more complex usage of the
IlvManagerServlet classes,
read
The IlvManagerServlet class.