Class ClientApi

java.lang.Object
org.zaproxy.clientapi.core.ClientApi

public class ClientApi extends Object
  • Field Details

  • Constructor Details

    • ClientApi

      public ClientApi(String zapAddress, int zapPort)
    • ClientApi

      public ClientApi(String zapAddress, int zapPort, String apiKey)
      Constructs a ClientApi with the given ZAP address/port and with the given API key, to be sent with all API requests.
      Parameters:
      zapAddress - ZAP's address
      zapPort - ZAP's listening port
      apiKey - the ZAP API key, might be null or empty in which case is not used/sent.
      Since:
      1.1.0
    • ClientApi

      public ClientApi(String zapAddress, int zapPort, boolean debug)
    • ClientApi

      public ClientApi(String zapAddress, int zapPort, String apiKey, boolean debug)
      Constructs a ClientApi with the given ZAP address/port and with the given API key, to be sent with all API requests. Also, sets whether or not client API debug information should be written to the debug stream (by default the standard output stream).
      Parameters:
      zapAddress - ZAP's address
      zapPort - ZAP's listening port
      apiKey - the ZAP API key, might be null or empty in which case is not used/sent.
      debug - true if debug information should be written to debug stream, false otherwise.
      Since:
      1.1.0
  • Method Details