sunlabs.brazil.handler
Class DialogHandler
public
class
DialogHandler
extends Applet
implements Handler
Sample handler for popping up a dialog box on the server.
This is used for interactive authentication of web pages, allowing
an
operator on the server's computer to allow or deny access
to pages on a per request basis.
Input parameters examined in the request properties:
- prefix, suffix, glob, match
- Specify the URL that triggers this handler.
(See MatchString).
- default
- The message to appear in the dialog box.
Defaults to Request from Client.
- denied
- The message to appear in the "permission denied" spot.
If query data is present, it is used as the message.
Note: This is the only class in the entire system that requires AWT.
Version: 2.2, 06/11/13
Author: Stephen Uhler
public Button cancel
public Panel frame_1
public Button ok
public Label title
public void dismiss(boolean how)
public boolean handleEvent(Event event)
public boolean init(
Server server, String prefix)
Do one time initialization.
public void init()
Machine generated code.
Everything after here was automatically generated
SpecTcl generated class Dialog, version 1.0
public boolean respond(
Request request)
Pop up a dialog box on the server machine.
Allow the operator to select yes or no.
If the request is allowed, it is passed on to the next handler.