Class MicroProxy

java.lang.Object
org.microproxy.MicroProxy

public final class MicroProxy extends Object
Entry point: MicroProxy.bootstrap().withPort(8080).start().
  • Method Details

    • bootstrap

      public static HttpProxyServerBootstrap bootstrap()
      Starts a proxy configuration with default settings.
      Returns:
      a new proxy bootstrap
    • bootstrapFromFile

      public static HttpProxyServerBootstrap bootstrapFromFile(Path path) throws IOException
      A bootstrap configured from a properties file (see the configuration properties for keys).
      Parameters:
      path - the properties file to read
      Returns:
      a bootstrap initialized from the properties file
      Throws:
      IOException - if the properties file cannot be read