public class ConnectionMonitorHttpConfiguration extends Object
| Constructor and Description |
|---|
ConnectionMonitorHttpConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
HTTPConfigurationMethod |
method()
Get the HTTP method to use.
|
String |
path()
Get the path component of the URI.
|
Integer |
port()
Get the port to connect to.
|
Boolean |
preferHTTPS()
Get value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.
|
List<HTTPHeader> |
requestHeaders()
Get the HTTP headers to transmit with the request.
|
List<String> |
validStatusCodeRanges()
Get hTTP status codes to consider successful.
|
ConnectionMonitorHttpConfiguration |
withMethod(HTTPConfigurationMethod method)
Set the HTTP method to use.
|
ConnectionMonitorHttpConfiguration |
withPath(String path)
Set the path component of the URI.
|
ConnectionMonitorHttpConfiguration |
withPort(Integer port)
Set the port to connect to.
|
ConnectionMonitorHttpConfiguration |
withPreferHTTPS(Boolean preferHTTPS)
Set value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.
|
ConnectionMonitorHttpConfiguration |
withRequestHeaders(List<HTTPHeader> requestHeaders)
Set the HTTP headers to transmit with the request.
|
ConnectionMonitorHttpConfiguration |
withValidStatusCodeRanges(List<String> validStatusCodeRanges)
Set hTTP status codes to consider successful.
|
public Integer port()
public ConnectionMonitorHttpConfiguration withPort(Integer port)
port - the port value to setpublic HTTPConfigurationMethod method()
public ConnectionMonitorHttpConfiguration withMethod(HTTPConfigurationMethod method)
method - the method value to setpublic String path()
public ConnectionMonitorHttpConfiguration withPath(String path)
path - the path value to setpublic List<HTTPHeader> requestHeaders()
public ConnectionMonitorHttpConfiguration withRequestHeaders(List<HTTPHeader> requestHeaders)
requestHeaders - the requestHeaders value to setpublic List<String> validStatusCodeRanges()
public ConnectionMonitorHttpConfiguration withValidStatusCodeRanges(List<String> validStatusCodeRanges)
validStatusCodeRanges - the validStatusCodeRanges value to setpublic Boolean preferHTTPS()
public ConnectionMonitorHttpConfiguration withPreferHTTPS(Boolean preferHTTPS)
preferHTTPS - the preferHTTPS value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/