public class ColorServlet extends GenericServlet
"color" parameter. The color is HTML-style #RRGGBB, with two
digits hex number for red, green and blue (the hash, '#', is optional).
The class does only byte manipulation, there is no server-side image
processing involving AWT (Toolkit class) of any kind.| Constructor and Description |
|---|
ColorServlet()
Creates a ColorDroplet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
service(javax.servlet.ServletRequest pRequest,
javax.servlet.ServletResponse pResponse)
Renders the 1 x 1 single color PNG to the response.
|
initpublic void service(javax.servlet.ServletRequest pRequest,
javax.servlet.ServletResponse pResponse)
throws IOException,
javax.servlet.ServletException
service in interface javax.servlet.Servletservice in class javax.servlet.GenericServletpRequest - the requestpResponse - the responseIOExceptionjavax.servlet.ServletExceptionclass descriptionCopyright © 2017. All rights reserved.