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 {@link 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

Field Summary
Buttoncancel
Panelframe_1
Buttonok
Labeltitle
Method Summary
voiddismiss(boolean how)
booleanhandleEvent(Event event)
booleaninit(Server server, String prefix)
Do one time initialization.
voidinit()
Machine generated code.
booleanrespond(Request request)
Pop up a dialog box on the server machine.

Field Detail

cancel

public Button cancel

Serial:

frame_1

public Panel frame_1

Serial:

ok

public Button ok

Serial:

title

public Label title

Serial:

Method Detail

dismiss

public void dismiss(boolean how)

handleEvent

public boolean handleEvent(Event event)

init

public boolean init(Server server, String prefix)
Do one time initialization.

init

public void init()
Machine generated code. Everything after here was automatically generated SpecTcl generated class Dialog, version 1.0

respond

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.