Package burp.api.montoya.http
Interface HttpService
public interface HttpService
Burp HTTP service providing details about an HTTP service, to which HTTP requests can be sent.
-
Method Summary
Modifier and TypeMethodDescriptionhost()
static HttpService
httpService
(String baseUrl) Create a new instance ofHttpService
.static HttpService
httpService
(String host, boolean secure) Create a new instance ofHttpService
.static HttpService
httpService
(String host, int port, boolean secure) Create a new instance ofHttpService
.Dynamically resolve the host to an IP address.int
port()
boolean
secure()
toString()
-
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
-
httpService
Create a new instance ofHttpService
.- Parameters:
baseUrl
- The URL for the service.- Returns:
- A new
HttpService
instance. - Throws:
IllegalArgumentException
- If the provided URL is invalid.
-
httpService
Create a new instance ofHttpService
.- 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
Create a new instance ofHttpService
.- 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.
-