org.dyndns.kwitte.ogc
Class Entry

java.lang.Object
  extended byorg.dyndns.kwitte.ogc.Entry

public final class Entry
extends java.lang.Object

A game entry in the list of games of the OGC server. Immutable, thread-safe.

See Also:
ClientConnection.getListModel(), ClientConnection.getEnumeration()

Method Summary
 java.lang.String getEntry()
          Returns the entry in precisely the same way as it has been sent by the Open Game Cache server according to the Open Game Cache protocol.
 java.lang.String getID()
          Returns the ID of this entry.
 java.lang.String getIP()
          Returns the IP or the host of this entry in the list of games.
 int getPort()
          Returns the port of the game.
 java.lang.String getVersion()
          Returns the version of this entry.
 java.lang.String toString()
          Returns a well readable String representation of this Entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getIP

public java.lang.String getIP()
Returns the IP or the host of this entry in the list of games.

Returns:
the IP or the host.

getPort

public int getPort()
Returns the port of the game.

Returns:
the port of the game.

getID

public java.lang.String getID()
Returns the ID of this entry.

Returns:
the ID of this entry.

getVersion

public java.lang.String getVersion()
Returns the version of this entry.

Returns:
the version of this entry.

toString

public java.lang.String toString()
Returns a well readable String representation of this Entry. It can be used for example to display it to the user in a list of games that are currently running on an Open Game Cache server. The precise structure of the returned String is undefined and may change in a later release, but it will never be null.

Returns:
a String representation of this Entry

getEntry

public java.lang.String getEntry()
Returns the entry in precisely the same way as it has been sent by the Open Game Cache server according to the Open Game Cache protocol.

Returns:
the entry from the server