Class AppServerInfo


  • public class AppServerInfo
    extends java.lang.Object
    This class manages information about the underlying application server.
    Since:
    jcms-4.0
    Author:
    Olivier Dedieu
    • Method Detail

      • getInstance

        public static AppServerInfo getInstance​(javax.servlet.ServletContext context)
        Return an instance of AppServerInfo
        Parameters:
        context - the ServletContext
        Returns:
        an instance of AppServerInfo
        Since:
        jcms-4.0
      • getName

        public java.lang.String getName()
        Returns:
        the name
        Since:
        jcms-4.0
      • getPattern

        public java.lang.String getPattern()
        Returns:
        the string pattern
        Since:
        jcms-4.0
      • getRestartFile

        public java.lang.String getRestartFile()
        Returns:
        the restart file
        Since:
        jcms-4.0
      • getServerInfo

        public java.lang.String getServerInfo()
        Returns:
        the serverInfo String
        Since:
        jcms-4.0
      • setServerInfo

        public void setServerInfo​(java.lang.String string)
        Set the serverInfo String
        Parameters:
        string - the serverInfo String
        Since:
        jcms-4.0
      • isRestartSupported

        public boolean isRestartSupported()
        Check if restart is fully supported under this Application Server
        Returns:
        true if restart can be performed from JCMS false otherwise.
      • setRestartSupported

        public void setRestartSupported​(boolean restartSupported)
        Change current status regarding restart possibility under this Application Server
        Parameters:
        restartSupported - set to true to allow restart to be performed false to disable it
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object