Class JakartaEEServer

java.lang.Object
com.iizix.server.ServerShell
com.iizix.server.jakarta.JakartaEEServer
All Implemented Interfaces:
IWebServiceEngine, WebSocketAcceptor, IAdditonalInformation<UserInfoHistoryEntry>, IAppLoader, IServer, IKStringInfoProviderHolder

public class JakartaEEServer extends ServerShell
The JakartaEEServer is the iiziServer Shell running the JakartaEE environment.
Author:
Christopher Mindus
  • Method Details

    • main

      public static void main(String[] args)
      The main method that starts the server followed by the Jakarta EE server engine, such as GlassFish or JBoss.
      Parameters:
      args - The command line arguments. Command line arguments for IIZI are always preceded with -iizi followed by a the next argument being handled by the iiziServer. All arguments between -JakartaEE delimiters (or the end of the line) are passed to the JakartaEE server.
    • loadApplications

      public void loadApplications() throws Throwable
      Called to load the application.
      Specified by:
      loadApplications in interface IServer
      Specified by:
      loadApplications in class ServerShell
      Throws:
      Throwable - for start-up errors.
    • getInstance

      public static JakartaEEServer getInstance()
      Gets the Jakarta EE Server instance.
      Returns:
      The Jakarta EE instance, or null if not started.
    • getProxy

      public Proxy getProxy(URL url)
      Gets a proxy to use for an URL.
      Parameters:
      url - The URL.
      Returns:
      The Proxy to use.
    • configureProxy

      public void configureProxy(HttpURLConnection urlConnection)
      Configures a Http(s)URLConnection for proxy information.
      Parameters:
      urlConnection - The HttpURLConnection or HttpsURLConnection.
    • getRootDirectory

      public String getRootDirectory()
      Gets the web server root directory.
      Returns:
      The directory, or null if web server is not started.
    • getWebServerCompression

      public IWebServerCompression getWebServerCompression()
      Gets the web server compression interface.
      Specified by:
      getWebServerCompression in class ServerShell
      Returns:
      The instance of the interface implemented by the web server.
    • doCompressNormalHTML

      public boolean doCompressNormalHTML()
      Flag indicating the normal HTML files needs compression along with CSS minify and JS compression.

      The files are typically: iiziApp.html and iiziVSViewer.html.

      Specified by:
      doCompressNormalHTML in class ServerShell
      Returns:
      true by default, override to return false (e.g. for internal development).