ConnectionMonitorHttpConfiguration Class
- java.
lang. Object - com.
microsoft. azure. management. network. ConnectionMonitorHttpConfiguration
- com.
public class ConnectionMonitorHttpConfiguration
Describes the HTTP configuration.
Constructor Summary
Constructor | Description | |
---|---|---|
ConnectionMonitorHttpConfiguration() |
Method Summary
Modifier and Type | Method and Description |
---|---|
HTTPConfiguration |
method()
Get the HTTP method to use. |
java.lang.String |
path()
Get the path component of the URI. |
java.lang.Integer |
port()
Get the port to connect to. |
java.lang.Boolean |
preferHTTPS()
Get value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit. |
java.util.List<HTTPHeader> |
requestHeaders()
Get the HTTP headers to transmit with the request. |
java.util.List<java.lang.String> |
validStatusCodeRanges()
Get hTTP status codes to consider successful. |
Connection |
withMethod(HTTPConfigurationMethod method)
Set the HTTP method to use. |
Connection |
withPath(String path)
Set the path component of the URI. |
Connection |
withPort(Integer port)
Set the port to connect to. |
Connection |
withPreferHTTPS(Boolean preferHTTPS)
Set value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit. |
Connection |
withRequestHeaders(List<HTTPHeader> requestHeaders)
Set the HTTP headers to transmit with the request. |
Connection |
withValidStatusCodeRanges(List<String> validStatusCodeRanges)
Set hTTP status codes to consider successful. |
Methods inherited from java.lang.Object
Constructor Details
ConnectionMonitorHttpConfiguration
public ConnectionMonitorHttpConfiguration()
Method Details
method
public HTTPConfigurationMethod method()
Get the HTTP method to use. Possible values include: 'Get', 'Post'.
Returns:
path
public String path()
Get the path component of the URI. For instance, "/dir1/dir2".
Returns:
port
public Integer port()
Get the port to connect to.
Returns:
preferHTTPS
public Boolean preferHTTPS()
Get value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.
Returns:
requestHeaders
public List
Get the HTTP headers to transmit with the request.
Returns:
validStatusCodeRanges
public List
Get hTTP status codes to consider successful. For instance, "2xx,301-304,418".
Returns:
withMethod
public ConnectionMonitorHttpConfiguration withMethod(HTTPConfigurationMethod method)
Set the HTTP method to use. Possible values include: 'Get', 'Post'.
Parameters:
Returns:
withPath
public ConnectionMonitorHttpConfiguration withPath(String path)
Set the path component of the URI. For instance, "/dir1/dir2".
Parameters:
Returns:
withPort
public ConnectionMonitorHttpConfiguration withPort(Integer port)
Set the port to connect to.
Parameters:
Returns:
withPreferHTTPS
public ConnectionMonitorHttpConfiguration withPreferHTTPS(Boolean preferHTTPS)
Set value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.
Parameters:
Returns:
withRequestHeaders
public ConnectionMonitorHttpConfiguration withRequestHeaders(List
Set the HTTP headers to transmit with the request.
Parameters:
Returns:
withValidStatusCodeRanges
public ConnectionMonitorHttpConfiguration withValidStatusCodeRanges(List
Set hTTP status codes to consider successful. For instance, "2xx,301-304,418".
Parameters:
Returns: