@Test public void testParseRemoteSystem() { logger.debug("testParseRemoteSystem: enter"); final String line = "||org.onap.policy.pap.xacml.rest.XACMLPapServlet$Heartbeat.run(XACMLPapServlet.java:2801)||Heartbeat 'https: final String returnValue = ParseLog.parseRemoteSystem(line); logger.debug("testParseRemoteSystem: returnValue: " + returnValue); assertEquals("localhost:8081", returnValue); logger.debug("testParseRemoteSystem: exit"); }
public static String parseRemoteSystem(final String line) { if (line.contains("http") && !(line.contains("www.w3.org"))) { final Pattern pattern = Pattern.compile(": final Matcher remote = pattern.matcher(line); if (remote.find()) { return remote.group(1); } } return null; }
ParseLog { public static String parseRemoteSystem(final String line) { if (line.contains("http") && !(line.contains("www.w3.org"))) { final Pattern pattern = Pattern.compile(": final Matcher remote = pattern.matcher(line); if (remote.find()) { return remote.group(1); } } return null; } }
ParseLog { public static String parseRemoteSystem(final String line) { if (line.contains("http") && !(line.contains("www.w3.org"))) { final Pattern pattern = Pattern.compile(": final Matcher remote = pattern.matcher(line); if (remote.find()) { return remote.group(1); } } return null; }  }
ParseLog { public static String parseRemoteSystem(final String line) { if (line.contains("http") && !(line.contains("www.w3.org"))) { final Pattern pattern = Pattern.compile(": final Matcher remote = pattern.matcher(line); if (remote.find()) { return remote.group(1); } } return null; }  static void main(final String[] args); static int countLines(final String filename); static String pullLastLineRead(final File file, final String dataFileName); static LogEntryObject pullOutLogValues(final String line, final String type); static void process(final String line, final String type, final LogType logFile); static Date parseDate(final String dateline, final String pattern, final boolean singleSplit); static String parseRemoteSystem(final String line); static String[] getPaths(final String logPath); static Properties getPropertiesValue(final String fileName); static Connection getDbConnection(); }
ParseLog { public static String parseRemoteSystem(final String line) { if (line.contains("http") && !(line.contains("www.w3.org"))) { final Pattern pattern = Pattern.compile(": final Matcher remote = pattern.matcher(line); if (remote.find()) { return remote.group(1); } } return null; }  static void main(final String[] args); static int countLines(final String filename); static String pullLastLineRead(final File file, final String dataFileName); static LogEntryObject pullOutLogValues(final String line, final String type); static void process(final String line, final String type, final LogType logFile); static Date parseDate(final String dateline, final String pattern, final boolean singleSplit); static String parseRemoteSystem(final String line); static String[] getPaths(final String logPath); static Properties getPropertiesValue(final String fileName); static Connection getDbConnection();  }