Class ServerInputHandler

    • Field Detail

      • logger

        private static final java.util.logging.Logger logger
    • Constructor Detail

      • ServerInputHandler

        public ServerInputHandler​(FreeColServer freeColServer)
        The constructor to use.
        Parameters:
        freeColServer - The main server object.
    • Method Detail

      • read

        public Message read​(Connection connection)
                     throws FreeColException,
                            javax.xml.stream.XMLStreamException
        Read an incoming Message.
        Specified by:
        read in interface MessageHandler
        Parameters:
        connection - The Connection to read from.
        Returns:
        The Message found, or null if none.
        Throws:
        FreeColException - if the message can not be instantiated.
        javax.xml.stream.XMLStreamException - if there is a problem reading the message.