org.rhq.enterprise.communications.util.prefs
Class LocalInetAddressSetupInstruction

java.lang.Object
  extended by org.rhq.enterprise.communications.util.prefs.SetupInstruction
      extended by org.rhq.enterprise.communications.util.prefs.LocalInetAddressSetupInstruction

public class LocalInetAddressSetupInstruction
extends SetupInstruction

This setup instruction is used to define a preference whose value is an IP address that is to be bound to the local host, but by default not the loopback device. This is used to allow a user to default the IP address to bind to something other than the loopback device (localhost or 127.0.0.1) in order for clients external to this local box to connect to it.

Author:
John Mazzitelli

Constructor Summary
LocalInetAddressSetupInstruction(String preference_name, String prompt_message, String help_message)
          Creates a new LocalInetAddressSetupInstruction object.
 
Method Summary
 void preProcess()
          Sets the default as an IP address for this local host.
 
Methods inherited from class org.rhq.enterprise.communications.util.prefs.SetupInstruction
getDefaultValue, getHelpMessage, getPreferenceName, getPreferences, getPromptMessage, getValidityChecker, isUsingNoEchoPrompt, postProcess, setDefaultValue, setHelpMessage, setPreferences, setPromptMessage, setUsingNoEchoPrompt, setValidityChecker, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalInetAddressSetupInstruction

public LocalInetAddressSetupInstruction(String preference_name,
                                        String prompt_message,
                                        String help_message)
                                 throws IllegalArgumentException
Creates a new LocalInetAddressSetupInstruction object.

Parameters:
preference_name -
prompt_message -
help_message -
Throws:
IllegalArgumentException
See Also:
SetupInstruction.SetupInstruction(String, String, SetupValidityChecker, String, String, boolean)
Method Detail

preProcess

public void preProcess()
Sets the default as an IP address for this local host. We try not to set it to a loopback device.

Overrides:
preProcess in class SetupInstruction
See Also:
SetupInstruction.preProcess()


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.