Package com.iizix.server.jakarta
Class JakartaEEServer
java.lang.Object
com.iizix.server.ServerShell
com.iizix.server.jakarta.JakartaEEServer
- All Implemented Interfaces:
- IWebServiceEngine,- WebSocketAcceptor,- IAdditonalInformation<UserInfoHistoryEntry>,- IAppLoader,- IServer,- IKStringInfoProviderHolder
The JakartaEEServer is the iiziServer Shell running the JakartaEE environment.
- Author:
- Christopher Mindus
- Nested Class Summary- Nested classes/interfaces inherited from interface com.iizix.server.IServer- IServer.InvalidAppID, IServer.State
- Field Summary- Fields inherited from class com.iizix.server.ServerShell- externalBrowserPages, memoryJarFactory, xjarFactory- Fields inherited from interface com.iizix.server.IServer- MAX_VALID_APP_ID_LENGTH
- Method SummaryModifier and TypeMethodDescription- void- configureProxy- (HttpURLConnection urlConnection) Configures a Http(s)URLConnection for proxy information.- booleanFlag indicating the normal HTML files needs compression along with CSS minify and JS compression.- static JakartaEEServerGets the Jakarta EE Server instance.Gets a proxy to use for an URL.Gets the web server root directory.Gets the web server compression interface.- voidCalled to load the application.- static voidThe main method that starts the server followed by the Jakarta EE server engine, such as GlassFish or JBoss.- Methods inherited from class com.iizix.server.ServerShell- _getState, _registerApplication, _unregisterApplication, addDisposeListener, addEndPointListener, addFileUploader, addModule, addUserLoginProhibitedInterval, configureSessionMgr, dispose, flushStartupLog, getAccessibleEnvironments, getActiveUserSessions, getAdditionalInformation, getAppAliases, getApplication, getApplications, getCurrentDirectory, getDefaultMailSender, getEmailVerificationURL, getEndPointsInstances, getETag, getExecutorService, getExternalWebServerBaseURL, getFileProviderEngine, getHandledContextPaths, getHistory, getInfoClass, getInstance, getKStringInfoProvider, getMailSender, getPropertyFactory, getPropertyManager, getServerConfigFile, getServerLogger, getServerProperties, getServerSettings, getServerThreadGroup, getSourceResolver, getStartTime, getState, getTXPCoordinator, getUserLoginProhibitedIntervals, getWebLogos, getWebServerMapping, getWebThumbs, getWorker, getWSUploaderService, initializeCompressedFiles, initializeURNFactory, isRequestURIAccepted, isUserLoginEnabled, isUserLoginPermittedNow, loadFile, loadFile, loadPlugins, loadPluginsAndConfig, loadServerConfig, onApplicationSessionStarted, onApplicationSessionStopped, onDispose, onDisposed, onEndPointDisposed, onStartServer, registerApplication, registerApplication, registerEndPointConstructor, registerRegionLocationServiceProviders, registerRequestPrinter, removeDisposeListener, removeEndPointListener, removeFileUploader, removeModule, saveFile, saveServerConfig, setUserLoginEnabled, setWSFileProviderEngine, shutdownRegionLocationServiceProviders, startServer, unregisterApplication, unregisterEndPointConstructor, unregisterRequestPrinter, updateWebServerRoot
- Method Details- mainThe 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- -iizifollowed by a the next argument being handled by the iiziServer. All arguments between- -JakartaEEdelimiters (or the end of the line) are passed to the JakartaEE server.
 
- loadApplicationsCalled to load the application.- Specified by:
- loadApplicationsin interface- IServer
- Specified by:
- loadApplicationsin class- ServerShell
- Throws:
- Throwable- for start-up errors.
 
- getInstanceGets the Jakarta EE Server instance.- Returns:
- The Jakarta EE instance, or null if not started.
 
- getProxyGets a proxy to use for an URL.- Parameters:
- url- The URL.
- Returns:
- The Proxy to use.
 
- configureProxyConfigures a Http(s)URLConnection for proxy information.- Parameters:
- urlConnection- The HttpURLConnection or HttpsURLConnection.
 
- getRootDirectoryGets the web server root directory.- Returns:
- The directory, or null if web server is not started.
 
- getWebServerCompressionGets the web server compression interface.- Specified by:
- getWebServerCompressionin class- ServerShell
- Returns:
- The instance of the interface implemented by the web server.
 
- doCompressNormalHTMLpublic 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:
- doCompressNormalHTMLin class- ServerShell
- Returns:
- true by default, override to return false (e.g. for internal development).