net.lightbody.bmp.core.har.HarPage Java Examples

The following examples show how to use net.lightbody.bmp.core.har.HarPage. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BrowserMobProxyServer.java    From CapturePacket with MIT License 5 votes vote down vote up
public void endPage() {
    if (har == null) {
        throw new IllegalStateException("No HAR exists for this proxy. Use newHar() to create a new HAR.");
    }

    HarPage previousPage = this.currentHarPage;
    this.currentHarPage = null;

    if (previousPage == null) {
        return;
    }

    previousPage.getPageTimings().setOnLoad(new Date().getTime() - previousPage.getStartedDateTime().getTime());
}
 
Example #2
Source File: BrowserMobProxyServer.java    From Dream-Catcher with MIT License 5 votes vote down vote up
public void endPage() {
    if (har == null) {
        throw new IllegalStateException("No HAR exists for this proxy. Use newHar() to create a new HAR.");
    }

    HarPage previousPage = this.currentHarPage;
    this.currentHarPage = null;

    if (previousPage == null) {
        return;
    }

    previousPage.getPageTimings().setOnLoad(new Date().getTime() - previousPage.getStartedDateTime().getTime());
}
 
Example #3
Source File: MainActivity.java    From AndroidHttpCapture with MIT License 5 votes vote down vote up
public Set<String> getPageSet() {
    BrowserMobProxy proxy = ((SysApplication) getApplication()).proxy;

    Set<String> pageSet = new HashSet<>();
    for (HarPage harPage : proxy.getHar().getLog().getPages()) {
        if (!disablePages.contains(harPage.getId())) {
            pageSet.add(harPage.getId());
        }
    }

    return pageSet;
}
 
Example #4
Source File: BrowserMobProxyServer.java    From AndroidHttpCapture with MIT License 5 votes vote down vote up
public void endPage() {
    if (har == null) {
        throw new IllegalStateException("No HAR exists for this proxy. Use newHar() to create a new HAR.");
    }

    HarPage previousPage = this.currentHarPage;
    this.currentHarPage = null;

    if (previousPage == null) {
        return;
    }

    previousPage.getPageTimings().setOnLoad(new Date().getTime() - previousPage.getStartedDateTime().getTime());
}
 
Example #5
Source File: BrowserMobProxyServer.java    From CapturePacket with MIT License 4 votes vote down vote up
public HarPage getCurrentHarPage() {
    return currentHarPage;
}
 
Example #6
Source File: BrowserMobProxyServer.java    From Dream-Catcher with MIT License 4 votes vote down vote up
public HarPage getCurrentHarPage() {
    return currentHarPage;
}
 
Example #7
Source File: BrowserMobProxyServer.java    From AndroidHttpCapture with MIT License 4 votes vote down vote up
public HarPage getCurrentHarPage() {
    return currentHarPage;
}