Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.psibt.framework.net
Class UserDialogRequestHandler  view UserDialogRequestHandler download UserDialogRequestHandler.java

java.lang.Object
  extended bycom.psibt.framework.net.RootRequestHandler
      extended bycom.psibt.framework.net.UserDialogRequestHandler
All Implemented Interfaces:
HTTPRequestHandler

public class UserDialogRequestHandler
extends RootRequestHandler

This class implements a RequestHandler for the path "/userdialog/" in the PluggableHTTPServer. A simple input form is presented in the browser where you can enter a message. This message will be sent to the PluggableHTTPServer and shown in a JOptionPane MessageDialog.


Nested Class Summary
(package private)  class UserDialogRequestHandler.DialogThread
          Internal class to start the user dialog in a new thread.
 
Field Summary
private  Component parentComponent
           
 
Fields inherited from class com.psibt.framework.net.RootRequestHandler
 
Constructor Summary
UserDialogRequestHandler()
          Creates a new UserDialogRequestHandler object
UserDialogRequestHandler(Component parentComponent)
          Creates a new UserDialogRequestHandler object with a parentComponent reference
 
Method Summary
 boolean handleRequest(java.lang.String request, Writer out)
          Handles the given request and writes the reply to the given out-stream.
 
Methods inherited from class com.psibt.framework.net.RootRequestHandler
getDescription, getHandledPath, getReplyHTML, getReplyType, getTitle, handleRequest, setDescription, setHandledPath, setReplyHTML, setReplyType, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parentComponent

private Component parentComponent
Constructor Detail

UserDialogRequestHandler

public UserDialogRequestHandler()
Creates a new UserDialogRequestHandler object


UserDialogRequestHandler

public UserDialogRequestHandler(Component parentComponent)
Creates a new UserDialogRequestHandler object with a parentComponent reference

Method Detail

handleRequest

public boolean handleRequest(java.lang.String request,
                             Writer out)
Handles the given request and writes the reply to the given out-stream.

Overrides:
handleRequest in class RootRequestHandler