com.meterware.httpunit
Class DialogAdapter

java.lang.Object
  extended bycom.meterware.httpunit.DialogAdapter
All Implemented Interfaces:
DialogResponder

public class DialogAdapter
extends java.lang.Object
implements DialogResponder

Author:
Russell Gold

Constructor Summary
DialogAdapter()
           
 
Method Summary
 boolean getConfirmation(java.lang.String confirmationPrompt)
          Invoked when the user agent needs to display a confirmation dialog.
 java.lang.String getUserResponse(java.lang.String prompt, java.lang.String defaultResponse)
          Invoked when the user agent needs to display a generic dialog and obtain a user response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogAdapter

public DialogAdapter()
Method Detail

getConfirmation

public boolean getConfirmation(java.lang.String confirmationPrompt)
Invoked when the user agent needs to display a confirmation dialog. This default implementation confirms all dialogs.

Specified by:
getConfirmation in interface DialogResponder

getUserResponse

public java.lang.String getUserResponse(java.lang.String prompt,
                                        java.lang.String defaultResponse)
Invoked when the user agent needs to display a generic dialog and obtain a user response. This default implementation returns the default response.

Specified by:
getUserResponse in interface DialogResponder

Copyright © 2000-2008 Russell Gold. See license agreement for rights granted.