All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.browserup.bup.mitmproxy.addons.HarCaptureAddOn Maven / Gradle / Ivy

The newest version!
package com.browserup.bup.mitmproxy.addons;

import java.io.File;
import java.util.Optional;

public class HarCaptureAddOn extends AbstractAddon {
  private static final String HAR_DUMP_ADD_ON_FILE_NAME = "har_dump.py";

  private File harDumpFile = null;

  @Override
  public String[] getCommandParams() {
    return new String[]{
            "-s", getAddOnFilePath()
    };
  }

  @Override
  public String getAddOnFileName() {
    return HAR_DUMP_ADD_ON_FILE_NAME;
  }

  public Optional getHarDumpFile() {

    return Optional.ofNullable(harDumpFile);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy