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.
|
init
public void service(javax.servlet.ServletRequest pRequest, javax.servlet.ServletResponse pResponse) throws IOException, javax.servlet.ServletException
service
in interface javax.servlet.Servlet
service
in class javax.servlet.GenericServlet
pRequest
- the requestpResponse
- the responseIOException
javax.servlet.ServletException
class description
Copyright © 2017. All rights reserved.