Package org.browsermob.core.har

Examples of org.browsermob.core.har.HarNameVersion


                    UserAgentInfo uai = p.parse(userAgent);
                    String name = uai.getUaName();
                    int lastSpace = name.lastIndexOf(' ');
                    String browser = name.substring(0, lastSpace);
                    String version = name.substring(lastSpace + 1);
                    har.getLog().setBrowser(new HarNameVersion(browser, version));
                } catch (IOException e) {
                    // ignore it, it's fine
                } catch (Exception e) {
                  LOG.warn("Failed to parse user agent string", e);
                }
View Full Code Here

TOP

Related Classes of org.browsermob.core.har.HarNameVersion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.