Class PageFactory


  • @Singleton
    public class PageFactory
    extends java.lang.Object
    Factory for creating different Page objects.
    • Method Detail

      • playersPage

        public PlayersPage playersPage()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • serverPage

        public Page serverPage​(ServerUUID serverUUID)
                        throws java.io.IOException
        Create a server page.
        Parameters:
        serverUUID - UUID of the server
        Returns:
        Page that matches the server page.
        Throws:
        NotFoundException - If the server can not be found in the database.
        java.io.IOException - If the template files can not be read.
      • playerPage

        public PlayerPage playerPage​(java.util.UUID playerUUID)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • inspectPluginTabs

        public PlayerPluginTab inspectPluginTabs​(java.util.UUID playerUUID)
      • networkPage

        public NetworkPage networkPage()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • internalErrorPage

        public Page internalErrorPage​(java.lang.String message,
                                      java.lang.Throwable error)
      • errorPage

        public Page errorPage​(java.lang.String title,
                              java.lang.String error)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • errorPage

        public Page errorPage​(Icon icon,
                              java.lang.String title,
                              java.lang.String error)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getResource

        public java.lang.String getResource​(java.lang.String name)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • loginPage

        public Page loginPage()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • registerPage

        public Page registerPage()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • queryPage

        public Page queryPage()
                       throws java.io.IOException
        Throws:
        java.io.IOException