public class ImageServlet extends HttpServlet
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE |
Constructor and Description |
---|
ImageServlet(LocalImageCache cache)
Creates an image servlet.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(HttpServletRequest request,
HttpServletResponse response) |
protected void |
doPost(HttpServletRequest req,
HttpServletResponse resp) |
public static final int BUFFER_SIZE
public ImageServlet(LocalImageCache cache)
cache
- the local image caching system, can be null and if so no caching mechanism will be used.protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
ServletException
java.io.IOException
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, java.io.IOException
ServletException
java.io.IOException