org.apache.maven.wagon.providers.ssh.interactive
Class NullInteractiveUserInfo

java.lang.Object
  extended by org.apache.maven.wagon.providers.ssh.interactive.NullInteractiveUserInfo
All Implemented Interfaces:
InteractiveUserInfo

public class NullInteractiveUserInfo
extends Object
implements InteractiveUserInfo

Dummy Implementation for InteractiveUserInfo, nice for non-Interactive environments

Since:
Sep 12, 2005
Author:
Juan F. Codagnone
See Also:
InteractiveUserInfo

Field Summary
 
Fields inherited from interface org.apache.maven.wagon.providers.ssh.interactive.InteractiveUserInfo
ROLE
 
Constructor Summary
NullInteractiveUserInfo()
           
NullInteractiveUserInfo(boolean promptYesNoResult)
          Creates a NullInteractiveUserInfo with a hardcoded prompYesNo result
 
Method Summary
 String promptPassphrase(String message)
           
 String promptPassword(String message)
           
 boolean promptYesNo(String message)
           
 void showMessage(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullInteractiveUserInfo

public NullInteractiveUserInfo()
See Also:
NullInteractiveUserInfo(boolean)

NullInteractiveUserInfo

public NullInteractiveUserInfo(boolean promptYesNoResult)
Creates a NullInteractiveUserInfo with a hardcoded prompYesNo result

Parameters:
promptYesNoResult - the hardcoded result
Method Detail

promptYesNo

public boolean promptYesNo(String message)
Specified by:
promptYesNo in interface InteractiveUserInfo
See Also:
InteractiveUserInfo.promptYesNo(java.lang.String)

showMessage

public void showMessage(String message)
Specified by:
showMessage in interface InteractiveUserInfo
See Also:
InteractiveUserInfo.showMessage(java.lang.String)

promptPassword

public String promptPassword(String message)
Specified by:
promptPassword in interface InteractiveUserInfo

promptPassphrase

public String promptPassphrase(String message)
Specified by:
promptPassphrase in interface InteractiveUserInfo


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.