Class Profile

java.lang.Object
games.stendhal.client.gui.login.Profile

public class Profile extends Object
User login profile.
  • Constructor Details

    • Profile

      public Profile()
  • Method Details

    • getHost

      public String getHost()
    • getPassword

      public String getPassword()
    • getPort

      public int getPort()
    • getUser

      public String getUser()
    • getCharacter

      public String getCharacter()
    • getSeed

      public String getSeed()
    • createFromCommandline

      public static Profile createFromCommandline(String[] args)
      create a profile based on command line arguments
      • -u: username
      • -p: password
      • -c: character name (defaults to username)
      • -h: hostname
      • -P: port
      • -S: pre authentication seed
      Parameters:
      args - command line arguments
      Returns:
      profile
    • isValid

      public boolean isValid()
      checks whether all required attributes are defined
      Returns:
      true if all required attributes are defined, false if some are missing.
    • setHost

      public void setHost(String host)
    • setPassword

      public void setPassword(String password)
    • setPort

      public void setPort(int port)
    • setUser

      public void setUser(String user)
    • setCharacter

      public void setCharacter(String character)
    • setSeed

      public void setSeed(String seed)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Get the label string. This label is used for the profile selection list.
      Overrides:
      toString in class Object
      Returns:
      The label in the form of user@server-host[:port].