Package burp.api.montoya.http
Interface HttpService
-
public interface HttpServiceThis interface is used to provide details about an HTTP service, to which HTTP requests can be sent.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringhost()static HttpServicehttpService(java.lang.String baseUrl)Create a new instance ofHttpService.static HttpServicehttpService(java.lang.String host, boolean secure)Create a new instance ofHttpService.static HttpServicehttpService(java.lang.String host, int port, boolean secure)Create a new instance ofHttpService.intport()booleansecure()java.lang.StringtoString()
-
-
-
Method Detail
-
httpService
static HttpService httpService(java.lang.String baseUrl)
Create a new instance ofHttpService.- Parameters:
baseUrl- The URL for the service.- Returns:
- A new
HttpServiceinstance. - Throws:
java.lang.IllegalArgumentException- If the provided URL is invalid.
-
httpService
static HttpService httpService(java.lang.String host, boolean secure)
Create a new instance ofHttpService.- Parameters:
host- The hostname or IP address for the service.secure- True is the secure connection is to be used.- Returns:
- A new
HttpServiceinstance.
-
httpService
static HttpService httpService(java.lang.String host, int port, boolean secure)
Create a new instance ofHttpService.- Parameters:
host- The hostname or IP address for the service.port- The port number for the service.secure- True is the secure connection is to be used.- Returns:
- A new
HttpServiceinstance.
-
host
java.lang.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 is a secure protocol is used for the connection, false otherwise.
-
toString
java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- Returns:
- The
Stringrepresentation of the service.
-
-