Class RegisterServerMessage


  • public class RegisterServerMessage
    extends ServerInfoMessage
    The message sent to register a server from the meta-server.
    • Constructor Detail

      • RegisterServerMessage

        public RegisterServerMessage​(ServerInfo si)
        Create a new RegisterServerMessage.
        Parameters:
        si - The ServerInfo to encapsulate.
      • RegisterServerMessage

        public RegisterServerMessage​(Game game,
                                     FreeColXMLReader xr)
                              throws javax.xml.stream.XMLStreamException
        Create a new RegisterServerMessage from a stream.
        Parameters:
        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.