Interface HttpService


public interface HttpService
Burp HTTP service providing details about an HTTP service, to which HTTP requests can be sent.
  • Method Details

    • host

      String host()
      Returns:
      The hostname or IP address for the service.
    • port

      int port()
      Returns:
      The port number for the service.
    • secure

      boolean secure()
      Returns:
      True if a secure protocol is used for the connection, false otherwise.
    • ipAddress

      String ipAddress()
      Dynamically resolve the host to an IP address.
      Returns:
      The IP address of the host.
    • toString

      String toString()
      Overrides:
      toString in class Object
      Returns:
      The String representation of the service.
    • httpService

      static HttpService httpService(String baseUrl)
      Create a new instance of HttpService.
      Parameters:
      baseUrl - The URL for the service.
      Returns:
      A new HttpService instance.
      Throws:
      IllegalArgumentException - If the provided URL is invalid.
    • httpService

      static HttpService httpService(String host, boolean secure)
      Create a new instance of HttpService.
      Parameters:
      host - The hostname or IP address for the service.
      secure - True if a secure connection is to be used.
      Returns:
      A new HttpService instance.
    • httpService

      static HttpService httpService(String host, int port, boolean secure)
      Create a new instance of HttpService.
      Parameters:
      host - The hostname or IP address for the service.
      port - The port number for the service.
      secure - True if a secure connection is to be used.
      Returns:
      A new HttpService instance.