public final class ConnectionMonitorHttpConfiguration extends Object
| Constructor and Description |
|---|
ConnectionMonitorHttpConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
HttpConfigurationMethod |
method()
Get the method property: The HTTP method to use.
|
String |
path()
Get the path property: The path component of the URI.
|
Integer |
port()
Get the port property: The port to connect to.
|
Boolean |
preferHttps()
Get the preferHttps property: Value indicating whether HTTPS is preferred over HTTP in cases where the choice is
not explicit.
|
List<HttpHeader> |
requestHeaders()
Get the requestHeaders property: The HTTP headers to transmit with the request.
|
void |
validate()
Validates the instance.
|
List<String> |
validStatusCodeRanges()
Get the validStatusCodeRanges property: HTTP status codes to consider successful.
|
ConnectionMonitorHttpConfiguration |
withMethod(HttpConfigurationMethod method)
Set the method property: The HTTP method to use.
|
ConnectionMonitorHttpConfiguration |
withPath(String path)
Set the path property: The path component of the URI.
|
ConnectionMonitorHttpConfiguration |
withPort(Integer port)
Set the port property: The port to connect to.
|
ConnectionMonitorHttpConfiguration |
withPreferHttps(Boolean preferHttps)
Set the preferHttps property: Value indicating whether HTTPS is preferred over HTTP in cases where the choice is
not explicit.
|
ConnectionMonitorHttpConfiguration |
withRequestHeaders(List<HttpHeader> requestHeaders)
Set the requestHeaders property: The HTTP headers to transmit with the request.
|
ConnectionMonitorHttpConfiguration |
withValidStatusCodeRanges(List<String> validStatusCodeRanges)
Set the validStatusCodeRanges property: HTTP status codes to consider successful.
|
public Integer port()
public ConnectionMonitorHttpConfiguration withPort(Integer port)
port - the port value to set.public HttpConfigurationMethod method()
public ConnectionMonitorHttpConfiguration withMethod(HttpConfigurationMethod method)
method - the method value to set.public String path()
public ConnectionMonitorHttpConfiguration withPath(String path)
path - the path value to set.public List<HttpHeader> requestHeaders()
public ConnectionMonitorHttpConfiguration withRequestHeaders(List<HttpHeader> requestHeaders)
requestHeaders - the requestHeaders value to set.public List<String> validStatusCodeRanges()
public ConnectionMonitorHttpConfiguration withValidStatusCodeRanges(List<String> validStatusCodeRanges)
validStatusCodeRanges - the validStatusCodeRanges value to set.public Boolean preferHttps()
public ConnectionMonitorHttpConfiguration withPreferHttps(Boolean preferHttps)
preferHttps - the preferHttps value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.