Class Exporter


  • @Singleton
    public class Exporter
    extends java.lang.Object
    Handles export for different pages.
    • Method Detail

      • exportServerPage

        public boolean exportServerPage​(Server server)
                                 throws ExportException
        Export a page of a server.
        Parameters:
        server - Server which page is going to be exported
        Returns:
        false if the page was not exported due to previous failure or is disabled in config.
        Throws:
        ExportException - If the export failed due to IO, NotFound or GenerationException.
      • exportPlayerPage

        public boolean exportPlayerPage​(java.util.UUID playerUUID,
                                        java.lang.String playerName)
                                 throws ExportException
        Export page of a player.
        Parameters:
        playerUUID - UUID of the player.
        playerName - Name of the player.
        Returns:
        false if the page was not exported due to config settings.
        Throws:
        ExportException - If the export failed due to IO, NotFound or GenerationException.
      • exportPlayerJSON

        public boolean exportPlayerJSON​(java.util.UUID playerUUID,
                                        java.lang.String playerName)
                                 throws ExportException
        Export Raw Data JSON of a player.
        Parameters:
        playerUUID - UUID of the player.
        playerName - Name of the player.
        Returns:
        false if the json was not exported due to config settings.
        Throws:
        ExportException - If the export failed due to IOException.