@WebServlet(description="Sends Key Strokes to active process",
urlPatterns="/sendkeys/*")
public class sendkeys
extends javax.servlet.http.HttpServlet
SendKeys.sendKeys(String)
method.
You can also pass the keys in a parameter called "keys" as well as pass them in the body of a POST.
Remember that data stuffed in the URL has to be encoded.
The servlet, returns the keys that were sent as a plain/text stream.Constructor and Description |
---|
sendkeys()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Gets called when the container destroys this object
|
void |
init(javax.servlet.ServletConfig config)
Initializes the servlet.
|
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- The Servlet's configuration information.javax.servlet.ServletException
- Thrown so the server can log the error.public void destroy()
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet