Class ServerInfoMessage

    • Constructor Detail

      • ServerInfoMessage

        protected ServerInfoMessage​(java.lang.String tag,
                                    ServerInfo si)
        Create a new ServerInfoMessage.
        Parameters:
        tag - The tag for this message.
        si - The ServerInfo to encapsulate.
      • ServerInfoMessage

        public ServerInfoMessage​(java.lang.String tag,
                                 Game game,
                                 FreeColXMLReader xr)
                          throws javax.xml.stream.XMLStreamException
        Create a new ServerInfoMessage from a stream.
        Parameters:
        tag - The actual message tag.
        game - The Game, which is null and ignored.
        xr - The FreeColXMLReader to read from.
        Throws:
        javax.xml.stream.XMLStreamException - if there is a problem reading the stream.
    • Method Detail

      • getServerInfo

        public ServerInfo getServerInfo()
        Get the server information encapsulated in this message.
        Returns:
        The ServerInfo found.
      • getAddress

        public java.lang.String getAddress()
        Get the address.
        Returns:
        The address attribute.
      • setAddress

        public void setAddress​(java.lang.String address)
        Override the address attribute.
        Parameters:
        address - The new address.
      • getPort

        public int getPort()
        Get the port.
        Returns:
        The port attribute.