Class LogReaderUtil


  • public class LogReaderUtil
    extends Object
    • Constructor Detail

      • LogReaderUtil

        public LogReaderUtil()
    • Method Detail

      • readLog

        public static org.webswing.server.common.model.rest.LogResponse readLog​(String type,
                                                                                org.webswing.server.common.model.rest.LogRequest request)
                                                                         throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • readSessionLog

        public static org.webswing.server.common.model.rest.LogResponse readSessionLog​(String appUrl,
                                                                                       String logDir,
                                                                                       org.webswing.server.common.model.rest.SessionLogRequest request)
                                                                                throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • readSessionLogInstanceIds

        public static List<String> readSessionLogInstanceIds​(String logDir,
                                                             String appUrl)
                                                      throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • getSessionLogDir

        public static String getSessionLogDir​(org.webswing.server.common.util.VariableSubstitutor subs,
                                              org.webswing.server.common.model.SwingConfig config)
      • normalizeForFileName

        public static String normalizeForFileName​(String text)
      • getZippedLog

        public static InputStream getZippedLog​(String type)
                                        throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException
      • getZippedSessionLog

        public static InputStream getZippedSessionLog​(String logDir,
                                                      String appUrl)
                                               throws org.webswing.server.model.exception.WsException
        Throws:
        org.webswing.server.model.exception.WsException