Check.Status
Constructor and Description |
---|
HTTPCheck(String name,
URL url) |
HTTPCheck(URL url) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ConvertibleMultiValues<String> |
getHeader()
See https://www.consul.io/api/agent/service.html#header.
|
URL |
getHTTP()
See https://www.consul.io/api/agent/service.html#http.
|
Optional<String> |
getInterval() |
Optional<HttpMethod> |
getMethod()
See https://www.consul.io/api/agent/service.html#method.
|
int |
hashCode() |
HTTPCheck |
headers(ConvertibleMultiValues<String> headers) |
HTTPCheck |
id(String ID) |
Duration |
interval() |
HTTPCheck |
interval(Duration interval) |
HTTPCheck |
interval(String interval) |
boolean |
isTLSSkipVerify() |
HTTPCheck |
method(HttpMethod method) |
HTTPCheck |
notes(String notes) |
void |
setHeaders(Map<CharSequence,List<String>> headers) |
protected void |
setInterval(String interval)
Sets the interval.
|
void |
setMethod(HttpMethod method) |
void |
setTLSSkipVerify(boolean TLSSkipVerify) |
HTTPCheck |
status(Check.Status status) |
HTTPCheck |
tlsSkipVerify(boolean TLSSkipVerify) |
deregisterCriticalServiceAfter, deregisterCriticalServiceAfter, deregisterCriticalServiceAfter, getDeregisterCriticalServiceAfter, getID, getName, getNotes, getStatus, setDeregisterCriticalServiceAfter, setName, setNotes, setStatus, status
public HTTPCheck(URL url)
url
- The URLprotected void setInterval(String interval)
interval
- The intervalpublic HTTPCheck interval(String interval)
interval
- The interval as a stringHTTPCheck
instancepublic URL getHTTP()
public Optional<HttpMethod> getMethod()
public ConvertibleMultiValues<String> getHeader()
public void setHeaders(Map<CharSequence,List<String>> headers)
headers
- The headerspublic boolean isTLSSkipVerify()
public void setTLSSkipVerify(boolean TLSSkipVerify)
TLSSkipVerify
- Skip the TLS verificationpublic void setMethod(HttpMethod method)
method
- The HttpMethod
public HTTPCheck headers(ConvertibleMultiValues<String> headers)
headers
- The headersHTTPCheck
instancepublic HTTPCheck tlsSkipVerify(boolean TLSSkipVerify)
TLSSkipVerify
- Skip the TLS verificationHTTPCheck
instancepublic HTTPCheck method(HttpMethod method)
method
- The HttpMethod
HTTPCheck
instancepublic HTTPCheck status(Check.Status status)
status
in class NewCheck
status
- The Check.Status
of the checkDuration